class OnappMarket::BillCollection

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

Constants

ID
RESOURCE

Collation of all instances owned by a resource

SUPPLIER

Collation of all instances owned by a supplier

TRADER

Collation of all instances owned by a trader

TYPE

Attributes

bills[RW]

Bills held in this collection

collation_id[RW]

Key of the type represented by #collation_of

collation_of[RW]

Type of collation which is held by this collection

complete[RW]

Does this collection include all bills for period covered, and are all those bills complete?

period[RW]

Period of the bills: hourly|daily|monthly

start_time[RW]

Time of the bills in the collection. Same for all bills.

Public Class Methods

new(hash, type = nil) click to toggle source

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