Class: SingleTokenCookieSetter
- Inherits:
-
Object
- Object
- SingleTokenCookieSetter
- Defined in:
- app/services/stormpath/rails/token_cookie_setter.rb
Instance Attribute Summary collapse
-
#cookie_jar ⇒ Object
readonly
Returns the value of attribute cookie_jar.
-
#token ⇒ Object
readonly
Returns the value of attribute token.
-
#token_config ⇒ Object
readonly
Returns the value of attribute token_config.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(cookie_jar, token, token_config) ⇒ SingleTokenCookieSetter
constructor
A new instance of SingleTokenCookieSetter.
Constructor Details
#initialize(cookie_jar, token, token_config) ⇒ SingleTokenCookieSetter
Returns a new instance of SingleTokenCookieSetter.
37 38 39 40 41 |
# File 'app/services/stormpath/rails/token_cookie_setter.rb', line 37 def initialize(, token, token_config) @cookie_jar = @token = token @token_config = token_config end |
Instance Attribute Details
#cookie_jar ⇒ Object (readonly)
Returns the value of attribute cookie_jar.
35 36 37 |
# File 'app/services/stormpath/rails/token_cookie_setter.rb', line 35 def @cookie_jar end |
#token ⇒ Object (readonly)
Returns the value of attribute token.
35 36 37 |
# File 'app/services/stormpath/rails/token_cookie_setter.rb', line 35 def token @token end |
#token_config ⇒ Object (readonly)
Returns the value of attribute token_config.
35 36 37 |
# File 'app/services/stormpath/rails/token_cookie_setter.rb', line 35 def token_config @token_config end |
Instance Method Details
#call ⇒ Object
43 44 45 |
# File 'app/services/stormpath/rails/token_cookie_setter.rb', line 43 def call [token_config.name] = end |