Class: LoggedUser

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

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#access_tokenObject

Returns the value of attribute access_token.



403
404
405
# File 'lib/chino_ruby.rb', line 403

def access_token
  @access_token
end

#expires_inObject

Returns the value of attribute expires_in.



403
404
405
# File 'lib/chino_ruby.rb', line 403

def expires_in
  @expires_in
end

#refresh_tokenObject

Returns the value of attribute refresh_token.



403
404
405
# File 'lib/chino_ruby.rb', line 403

def refresh_token
  @refresh_token
end

#scopeObject

Returns the value of attribute scope.



403
404
405
# File 'lib/chino_ruby.rb', line 403

def scope
  @scope
end

#token_typeObject

Returns the value of attribute token_type.



403
404
405
# File 'lib/chino_ruby.rb', line 403

def token_type
  @token_type
end

Instance Method Details

#attributesObject



411
412
413
# File 'lib/chino_ruby.rb', line 411

def attributes
    instance_values
end

#attributes=(hash) ⇒ Object



405
406
407
408
409
# File 'lib/chino_ruby.rb', line 405

def attributes=(hash)
    hash.each do |key, value|
        send("#{key}=", value)
    end
end