Class: Fog::Account::StormOnDemand::Token

Inherits:
Model
  • Object
show all
Defined in:
lib/fog/storm_on_demand/models/account/token.rb

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ Token

Returns a new instance of Token.



10
11
12
# File 'lib/fog/storm_on_demand/models/account/token.rb', line 10

def initialize(attributes={})
  super
end

Instance Method Details

#expireObject



14
15
16
# File 'lib/fog/storm_on_demand/models/account/token.rb', line 14

def expire
  service.expire_token.body['expired'].to_i == 1 ? true : false
end