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

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

Instance Attribute Summary

Attributes inherited from Model

#collection, #service

Instance Method Summary collapse

Methods inherited from Model

#inspect, #reload, #symbolize_keys, #to_json, #wait_for

Methods included from Fog::Attributes::ClassMethods

#_load, #aliases, #attribute, #attributes, #identity, #ignore_attributes, #ignored_attributes

Methods included from Core::DeprecatedConnectionAccessors

#connection, #connection=, #prepare_service_value

Methods included from Fog::Attributes::InstanceMethods

#_dump, #attributes, #dup, #identity, #identity=, #merge_attributes, #new_record?, #persisted?, #requires, #requires_one

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

#expireObject



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