Class: Fizzy::Types::AccessToken
- Inherits:
-
Data
- Object
- Data
- Fizzy::Types::AccessToken
- Defined in:
- lib/fizzy/generated/types.rb
Instance Attribute Summary collapse
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#permission ⇒ Object
readonly
Returns the value of attribute permission.
-
#token ⇒ Object
readonly
Returns the value of attribute token.
Class Method Summary collapse
Instance Attribute Details
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at
11 12 13 |
# File 'lib/fizzy/generated/types.rb', line 11 def created_at @created_at end |
#description ⇒ Object (readonly)
Returns the value of attribute description
11 12 13 |
# File 'lib/fizzy/generated/types.rb', line 11 def description @description end |
#id ⇒ Object (readonly)
Returns the value of attribute id
11 12 13 |
# File 'lib/fizzy/generated/types.rb', line 11 def id @id end |
#permission ⇒ Object (readonly)
Returns the value of attribute permission
11 12 13 |
# File 'lib/fizzy/generated/types.rb', line 11 def @permission end |
#token ⇒ Object (readonly)
Returns the value of attribute token
11 12 13 |
# File 'lib/fizzy/generated/types.rb', line 11 def token @token end |
Class Method Details
.from_json(data) ⇒ Object
13 14 15 16 17 18 19 20 21 |
# File 'lib/fizzy/generated/types.rb', line 13 def self.from_json(data) new( id: data["id"], description: data["description"], permission: data["permission"], created_at: data["created_at"], token: data["token"] ) end |