Sha256: 5c6c4b85566e23a1c06351d9337f5f021544b8ae32006646b0ef5601e5ddc134
Contents?: true
Size: 613 Bytes
Versions: 15
Compression:
Stored size: 613 Bytes
Contents
require 'fog/core/collection' require 'fog/storm_on_demand/models/billing/invoice' module Fog module Billing class StormOnDemand class Invoices < Fog::Collection model Fog::Billing::StormOnDemand::Invoice def all(options={}) invoices = service.list_invoices(options).body['items'] load(invoices) end def get(invoice_id) invoice = service.get_invoice(:id => invoice_id).body new(invoice) end def next invoice = service.next_invoice.body new(invoice) end end end end end
Version data entries
15 entries across 15 versions & 4 rubygems