Class: Aikotoba::Account::Token
- Inherits:
-
Object
- Object
- Aikotoba::Account::Token
- Defined in:
- app/models/aikotoba/account/token.rb
Instance Attribute Summary collapse
-
#expired_at ⇒ Object
readonly
Returns the value of attribute expired_at.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(extipry:) ⇒ Token
constructor
A new instance of Token.
Constructor Details
#initialize(extipry:) ⇒ Token
Returns a new instance of Token.
5 6 7 8 |
# File 'app/models/aikotoba/account/token.rb', line 5 def initialize(extipry:) @value = build_token @expired_at = extipry.since end |
Instance Attribute Details
#expired_at ⇒ Object (readonly)
Returns the value of attribute expired_at.
10 11 12 |
# File 'app/models/aikotoba/account/token.rb', line 10 def expired_at @expired_at end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
10 11 12 |
# File 'app/models/aikotoba/account/token.rb', line 10 def value @value end |