Class: Fizzy::Types::User
- Inherits:
-
Data
- Object
- Data
- Fizzy::Types::User
- Defined in:
- lib/fizzy/generated/types.rb
Instance Attribute Summary collapse
-
#active ⇒ Object
readonly
Returns the value of attribute active.
-
#avatar_url ⇒ Object
readonly
Returns the value of attribute avatar_url.
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#email_address ⇒ Object
readonly
Returns the value of attribute email_address.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#role ⇒ Object
readonly
Returns the value of attribute role.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Class Method Summary collapse
Instance Attribute Details
#active ⇒ Object (readonly)
Returns the value of attribute active
1094 1095 1096 |
# File 'lib/fizzy/generated/types.rb', line 1094 def active @active end |
#avatar_url ⇒ Object (readonly)
Returns the value of attribute avatar_url
1094 1095 1096 |
# File 'lib/fizzy/generated/types.rb', line 1094 def avatar_url @avatar_url end |
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at
1094 1095 1096 |
# File 'lib/fizzy/generated/types.rb', line 1094 def created_at @created_at end |
#email_address ⇒ Object (readonly)
Returns the value of attribute email_address
1094 1095 1096 |
# File 'lib/fizzy/generated/types.rb', line 1094 def email_address @email_address end |
#id ⇒ Object (readonly)
Returns the value of attribute id
1094 1095 1096 |
# File 'lib/fizzy/generated/types.rb', line 1094 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name
1094 1095 1096 |
# File 'lib/fizzy/generated/types.rb', line 1094 def name @name end |
#role ⇒ Object (readonly)
Returns the value of attribute role
1094 1095 1096 |
# File 'lib/fizzy/generated/types.rb', line 1094 def role @role end |
#url ⇒ Object (readonly)
Returns the value of attribute url
1094 1095 1096 |
# File 'lib/fizzy/generated/types.rb', line 1094 def url @url end |
Class Method Details
.from_json(data) ⇒ Object
1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 |
# File 'lib/fizzy/generated/types.rb', line 1096 def self.from_json(data) new( id: data["id"], name: data["name"], role: data["role"], active: data["active"], email_address: data["email_address"], created_at: data["created_at"], url: data["url"], avatar_url: data["avatar_url"] ) end |