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.
10 11 12 |
# File 'lib/fog/storm_on_demand/models/account/token.rb', line 10 def initialize(attributes={}) super end |
Instance Method Details
#expire ⇒ Object
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 |