Class: ChinoRuby::LoggedUser

Inherits:
Object
  • Object
show all
Includes:
ActiveModel::Serializers::JSON
Defined in:
lib/chino_ruby/classes.rb

Overview

——————————AUTH———————————–#

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#access_tokenObject

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_inObject

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_tokenObject

Returns the value of attribute refresh_token.



334
335
336
# File 'lib/chino_ruby/classes.rb', line 334

def refresh_token
  @refresh_token
end

#scopeObject

Returns the value of attribute scope.



334
335
336
# File 'lib/chino_ruby/classes.rb', line 334

def scope
  @scope
end

#token_typeObject

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

#attributesObject



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