Class: Aikotoba::Account::Token

Inherits:
Object
  • Object
show all
Defined in:
app/models/aikotoba/account/token.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_atObject (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

#valueObject (readonly)

Returns the value of attribute value.



10
11
12
# File 'app/models/aikotoba/account/token.rb', line 10

def value
  @value
end