Class: Fog::Account::StormOnDemand::Token
- Inherits:
-
Model
- Object
- Model
- Fog::Account::StormOnDemand::Token
- Defined in:
- lib/fog/storm_on_demand/models/account/token.rb
Instance Method Summary collapse
- #expire ⇒ Object
-
#initialize(attributes = {}) ⇒ Token
constructor
A new instance of Token.
Constructor Details
#initialize(attributes = {}) ⇒ Token
Returns a new instance of Token.
11 12 13 |
# File 'lib/fog/storm_on_demand/models/account/token.rb', line 11 def initialize(attributes={}) super end |
Instance Method Details
#expire ⇒ Object
15 16 17 |
# File 'lib/fog/storm_on_demand/models/account/token.rb', line 15 def expire service.expire_token.body['expired'].to_i == 1 ? true : false end |