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

Inherits:
Object
  • Object
show all
Includes:
StormOnDemand::Shared
Defined in:
lib/fog/account/storm_on_demand.rb,
lib/fog/account/storm_on_demand/requests/create_token.rb,
lib/fog/account/storm_on_demand/requests/expire_token.rb

Constant Summary

Constants included from StormOnDemand::Shared

StormOnDemand::Shared::API_URL, StormOnDemand::Shared::API_VERSION

Instance Method Summary collapse

Methods included from StormOnDemand::Shared

#initialize, #reload, #request

Instance Method Details

#create_token(options = {}) ⇒ Object



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

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

#expire_token(options = {}) ⇒ Object



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

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