Class: Clever::Types::Token
Instance Attribute Summary collapse
-
#access_token ⇒ Object
readonly
Returns the value of attribute access_token.
-
#created ⇒ Object
readonly
Returns the value of attribute created.
-
#owner ⇒ Object
readonly
Returns the value of attribute owner.
-
#scopes ⇒ Object
readonly
Returns the value of attribute scopes.
-
#uid ⇒ Object
readonly
Returns the value of attribute uid.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Token
constructor
A new instance of Token.
Methods inherited from Base
Constructor Details
#initialize(attributes = {}) ⇒ Token
Returns a new instance of Token.
12 13 14 15 16 17 18 |
# File 'lib/clever/types/token.rb', line 12 def initialize(attributes = {}, *) @uid = attributes['id'] @created = attributes['created'] @owner = attributes['owner'] @access_token = attributes['access_token'] @scopes = attributes['scopes'] end |
Instance Attribute Details
#access_token ⇒ Object (readonly)
Returns the value of attribute access_token.
6 7 8 |
# File 'lib/clever/types/token.rb', line 6 def access_token @access_token end |
#created ⇒ Object (readonly)
Returns the value of attribute created.
6 7 8 |
# File 'lib/clever/types/token.rb', line 6 def created @created end |
#owner ⇒ Object (readonly)
Returns the value of attribute owner.
6 7 8 |
# File 'lib/clever/types/token.rb', line 6 def owner @owner end |
#scopes ⇒ Object (readonly)
Returns the value of attribute scopes.
6 7 8 |
# File 'lib/clever/types/token.rb', line 6 def scopes @scopes end |
#uid ⇒ Object (readonly)
Returns the value of attribute uid.
6 7 8 |
# File 'lib/clever/types/token.rb', line 6 def uid @uid end |