Constructor
new RunNumber(cloudy, db)
Parameters:
Name |
Type |
Description |
cloudy |
Cloudy
|
ready Cloudy instance |
db |
DocumentStore
|
fully initialized DB instance |
- Source:
Members
_reemit :function
Type:
- Source:
Type:
- Source:
Type:
- Source:
Methods
(async, static) create(cloudyOptions, storeOptions) → {Promise.<RunNumber>}
Parameters:
Name |
Type |
Description |
cloudyOptions |
Object
|
|
storeOptions |
Object
|
|
- Source:
Returns:
Ready'd RunNumber instance
-
Type
-
Promise.<RunNumber>
(async) addBill(bill) → {Promise.<Bill>}
Interface to create / edit existing bill.
Parameters:
Name |
Type |
Description |
bill |
Bill
|
bill to be saved. note that it might be mutated -- new events without ID attribute will be populated automatically |
- Source:
Returns:
- the original bill reference. Might be mutated.
-
Type
-
Promise.<Bill>
del(key) → {Promise.<any>}
Parameters:
Name |
Type |
Description |
key |
string
|
|
- Source:
Returns:
-
Type
-
Promise.<any>
get(key) → {Bill}
Parameters:
Name |
Type |
Description |
key |
string
|
|
- Source:
Returns:
-
Type
-
Bill
query(filter) → {Array.<Event>}
Gets the events in an unspecified order
Parameters:
Name |
Type |
Description |
filter |
function
|
pick/reject unwanted bills |
- Source:
Returns:
- array of events
-
Type
-
Array.<Event>