Class: Himari::LifetimeValue
- Inherits:
-
Struct
- Object
- Struct
- Himari::LifetimeValue
- Defined in:
- lib/himari/lifetime_value.rb
Instance Attribute Summary collapse
-
#access_token ⇒ Object
Returns the value of attribute access_token.
-
#code ⇒ Object
Returns the value of attribute code.
-
#id_token ⇒ Object
Returns the value of attribute id_token.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#access_token ⇒ Object
Returns the value of attribute access_token
2 3 4 |
# File 'lib/himari/lifetime_value.rb', line 2 def access_token @access_token end |
#code ⇒ Object
Returns the value of attribute code
2 3 4 |
# File 'lib/himari/lifetime_value.rb', line 2 def code @code end |
#id_token ⇒ Object
Returns the value of attribute id_token
2 3 4 |
# File 'lib/himari/lifetime_value.rb', line 2 def id_token @id_token end |
Class Method Details
.from_integer(i) ⇒ Object
3 4 5 |
# File 'lib/himari/lifetime_value.rb', line 3 def self.from_integer(i) new(access_token: i, id_token: i, code: nil) end |
Instance Method Details
#as_json ⇒ Object
11 12 13 |
# File 'lib/himari/lifetime_value.rb', line 11 def as_json {access_token: access_token, id_token: id_token, code: code} end |
#as_log ⇒ Object
7 8 9 |
# File 'lib/himari/lifetime_value.rb', line 7 def as_log as_json&.compact end |