Class: ChinoRuby::LoggedUser
- Inherits:
-
Object
- Object
- ChinoRuby::LoggedUser
- Includes:
- ActiveModel::Serializers::JSON
- Defined in:
- lib/chino_ruby/classes.rb
Overview
——————————AUTH———————————–#
Instance Attribute Summary collapse
-
#access_token ⇒ Object
Returns the value of attribute access_token.
-
#expires_in ⇒ Object
Returns the value of attribute expires_in.
-
#refresh_token ⇒ Object
Returns the value of attribute refresh_token.
-
#scope ⇒ Object
Returns the value of attribute scope.
-
#token_type ⇒ Object
Returns the value of attribute token_type.
Instance Method Summary collapse
Instance Attribute Details
#access_token ⇒ Object
Returns the value of attribute access_token.
334 335 336 |
# File 'lib/chino_ruby/classes.rb', line 334 def access_token @access_token end |
#expires_in ⇒ Object
Returns the value of attribute expires_in.
334 335 336 |
# File 'lib/chino_ruby/classes.rb', line 334 def expires_in @expires_in end |
#refresh_token ⇒ Object
Returns the value of attribute refresh_token.
334 335 336 |
# File 'lib/chino_ruby/classes.rb', line 334 def refresh_token @refresh_token end |
#scope ⇒ Object
Returns the value of attribute scope.
334 335 336 |
# File 'lib/chino_ruby/classes.rb', line 334 def scope @scope end |
#token_type ⇒ Object
Returns the value of attribute token_type.
334 335 336 |
# File 'lib/chino_ruby/classes.rb', line 334 def token_type @token_type end |
Instance Method Details
#attributes ⇒ Object
342 343 344 |
# File 'lib/chino_ruby/classes.rb', line 342 def attributes instance_values end |
#attributes=(hash) ⇒ Object
336 337 338 339 340 |
# File 'lib/chino_ruby/classes.rb', line 336 def attributes=(hash) hash.each do |key, value| send("#{key}=", value) end end |