Class: Fog::Billing::StormOnDemand::Real

Inherits:
Object
  • Object
show all
Includes:
StormOnDemand::RealShared
Defined in:
lib/fog/storm_on_demand/billing.rb,
lib/fog/storm_on_demand/requests/billing/get_invoice.rb,
lib/fog/storm_on_demand/requests/billing/make_payment.rb,
lib/fog/storm_on_demand/requests/billing/next_invoice.rb,
lib/fog/storm_on_demand/requests/billing/list_invoices.rb

Constant Summary

Constants included from StormOnDemand::RealShared

StormOnDemand::RealShared::API_URL, StormOnDemand::RealShared::API_VERSION

Instance Method Summary collapse

Methods included from StormOnDemand::RealShared

#initialize, #reload, #request

Instance Method Details

#get_invoice(options = {}) ⇒ Object



5
6
7
8
9
10
# File 'lib/fog/storm_on_demand/requests/billing/get_invoice.rb', line 5

def get_invoice(options={})
  request(
    :path => '/Billing/Invoice/details',
    :body => Fog::JSON.encode(:params => options)
  )
end

#list_invoices(options = {}) ⇒ Object



5
6
7
8
9
10
# File 'lib/fog/storm_on_demand/requests/billing/list_invoices.rb', line 5

def list_invoices(options={})
  request(
    :path => '/Billing/Invoice/list',
    :body => Fog::JSON.encode(:params => options)
  )
end

#make_payment(options = {}) ⇒ Object



5
6
7
8
9
10
# File 'lib/fog/storm_on_demand/requests/billing/make_payment.rb', line 5

def make_payment(options={})
  request(
    :path => '/Billing/Payment/make',
    :body => Fog::JSON.encode(:params => options)
  )
end

#next_invoice(options = {}) ⇒ Object



5
6
7
8
9
10
# File 'lib/fog/storm_on_demand/requests/billing/next_invoice.rb', line 5

def next_invoice(options={})
  request(
    :path => '/Billing/Invoice/next',
    :body => Fog::JSON.encode(:params => options)
  )
end