Class: TranslationCms::Api::Session
- Defined in:
- lib/translation_cms/api/session.rb
Instance Method Summary collapse
- #destroy! ⇒ Object
-
#initialize(*args) ⇒ Session
constructor
A new instance of Session.
Methods inherited from Base
all!, custom_scope!, default_attributes, destroy, dummy_resource!, #method_missing_with_translations_will_change, parsed!, path_with_custom_scope, resource_type!, update
Constructor Details
#initialize(*args) ⇒ Session
Returns a new instance of Session.
11 12 13 14 |
# File 'lib/translation_cms/api/session.rb', line 11 def initialize(*args) super *args RequestStore.store[:access_token] = access_token end |
Instance Method Details
#destroy! ⇒ Object
16 17 18 |
# File 'lib/translation_cms/api/session.rb', line 16 def destroy! RequestStore.store[:access_token] = nil end |