Class: Fog::Billing::StormOnDemand::Invoices
- Inherits:
-
Collection
- Object
- Collection
- Fog::Billing::StormOnDemand::Invoices
- Defined in:
- lib/fog/billing/storm_on_demand/models/invoices.rb
Instance Method Summary collapse
Instance Method Details
#all(options = {}) ⇒ Object
7 8 9 10 |
# File 'lib/fog/billing/storm_on_demand/models/invoices.rb', line 7 def all( = {}) invoices = service.list_invoices().body["items"] load(invoices) end |
#get(invoice_id) ⇒ Object
12 13 14 15 |
# File 'lib/fog/billing/storm_on_demand/models/invoices.rb', line 12 def get(invoice_id) invoice = service.get_invoice(:id => invoice_id).body new(invoice) end |
#next ⇒ Object
17 18 19 20 |
# File 'lib/fog/billing/storm_on_demand/models/invoices.rb', line 17 def next invoice = service.next_invoice.body new(invoice) end |