A collection of bills for a given resource/trader/supplier
The type of entity covered by the collection can be checked by interrogating ‘#collation_of’
The bills are returned as a JSON array. Each bill in the array is a serialized version of an OnappMarket::Bill child class
Collation of all instances owned by a resource
Collation of all instances owned by a supplier
Collation of all instances owned by a trader
Bills held in this collection
Key of the type represented by #collation_of
Type of collation which is held by this collection
Does this collection include all bills for period covered, and are all those bills complete?
Period of the bills: hourly|daily|monthly
Time of the bills in the collection. Same for all bills.
Empty bill collection
# File lib/onapp_market/bill_collection.rb, line 41 def initialize(hash, type = nil) type = TYPE if type == nil super(hash, TYPE) end