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
1115 1116 1117 |
# File 'lib/fizzy/generated/types.rb', line 1115 def active @active end |
#avatar_url ⇒ Object (readonly)
Returns the value of attribute avatar_url
1115 1116 1117 |
# File 'lib/fizzy/generated/types.rb', line 1115 def avatar_url @avatar_url end |
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at
1115 1116 1117 |
# File 'lib/fizzy/generated/types.rb', line 1115 def created_at @created_at end |
#email_address ⇒ Object (readonly)
Returns the value of attribute email_address
1115 1116 1117 |
# File 'lib/fizzy/generated/types.rb', line 1115 def email_address @email_address end |
#id ⇒ Object (readonly)
Returns the value of attribute id
1115 1116 1117 |
# File 'lib/fizzy/generated/types.rb', line 1115 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name
1115 1116 1117 |
# File 'lib/fizzy/generated/types.rb', line 1115 def name @name end |
#role ⇒ Object (readonly)
Returns the value of attribute role
1115 1116 1117 |
# File 'lib/fizzy/generated/types.rb', line 1115 def role @role end |
#url ⇒ Object (readonly)
Returns the value of attribute url
1115 1116 1117 |
# File 'lib/fizzy/generated/types.rb', line 1115 def url @url end |
Class Method Details
.from_json(data) ⇒ Object
1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 |
# File 'lib/fizzy/generated/types.rb', line 1117 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 |