Class: Fog::Account::StormOnDemand::Real
- Inherits:
-
Object
- Object
- Fog::Account::StormOnDemand::Real
- 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( = {}) request( :path => "/Account/Auth/token", :body => Fog::JSON.encode(:params => ) ) 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( = {}) request( :path => "/Account/Auth/expireToken", :body => Fog::JSON.encode(:params => ) ) end |