class Fog::Billing::StormOnDemand::Invoices

Public Instance Methods

all(options={}) click to toggle source
# File lib/fog/storm_on_demand/models/billing/invoices.rb, line 10
def all(options={})
  invoices = service.list_invoices(options).body['items']
  load(invoices)
end
get(invoice_id) click to toggle source
# File lib/fog/storm_on_demand/models/billing/invoices.rb, line 15
def get(invoice_id)
  invoice = service.get_invoice(:id => invoice_id).body
  new(invoice)
end
next() click to toggle source
# File lib/fog/storm_on_demand/models/billing/invoices.rb, line 20
def next
  invoice = service.next_invoice.body
  new(invoice)
end