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
1105 1106 1107 |
# File 'lib/fizzy/generated/types.rb', line 1105 def active @active end |
#avatar_url ⇒ Object (readonly)
Returns the value of attribute avatar_url
1105 1106 1107 |
# File 'lib/fizzy/generated/types.rb', line 1105 def avatar_url @avatar_url end |
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at
1105 1106 1107 |
# File 'lib/fizzy/generated/types.rb', line 1105 def created_at @created_at end |
#email_address ⇒ Object (readonly)
Returns the value of attribute email_address
1105 1106 1107 |
# File 'lib/fizzy/generated/types.rb', line 1105 def email_address @email_address end |
#id ⇒ Object (readonly)
Returns the value of attribute id
1105 1106 1107 |
# File 'lib/fizzy/generated/types.rb', line 1105 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name
1105 1106 1107 |
# File 'lib/fizzy/generated/types.rb', line 1105 def name @name end |
#role ⇒ Object (readonly)
Returns the value of attribute role
1105 1106 1107 |
# File 'lib/fizzy/generated/types.rb', line 1105 def role @role end |
#url ⇒ Object (readonly)
Returns the value of attribute url
1105 1106 1107 |
# File 'lib/fizzy/generated/types.rb', line 1105 def url @url end |
Class Method Details
.from_json(data) ⇒ Object
1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 |
# File 'lib/fizzy/generated/types.rb', line 1107 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 |