Class: Fog::Account::StormOnDemand::Real

Inherits:
Object
  • Object
show all
Includes:
StormOnDemand::RealShared
Defined in:
lib/fog/storm_on_demand/account.rb,
lib/fog/storm_on_demand/requests/account/create_token.rb,
lib/fog/storm_on_demand/requests/account/expire_token.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

#create_token(options = {}) ⇒ Object



6
7
8
9
10
11
# File 'lib/fog/storm_on_demand/requests/account/create_token.rb', line 6

def create_token(options={})
  request(
    :path => '/Account/Auth/token',
    :body => Fog::JSON.encode(:params => options)
  )
end

#expire_token(options = {}) ⇒ Object



6
7
8
9
10
11
# File 'lib/fog/storm_on_demand/requests/account/expire_token.rb', line 6

def expire_token(options={})
  request(
    :path => '/Account/Auth/expireToken',
    :body => Fog::JSON.encode(:params => options)
  )
end