Class: Fizzy::Types::Account
- Inherits:
-
Data
- Object
- Data
- Fizzy::Types::Account
- Defined in:
- lib/fizzy/generated/types.rb
Instance Attribute Summary collapse
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#slug ⇒ Object
readonly
Returns the value of attribute slug.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
-
#user ⇒ Object
readonly
Returns the value of attribute user.
Class Method Summary collapse
Instance Attribute Details
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at
25 26 27 |
# File 'lib/fizzy/generated/types.rb', line 25 def created_at @created_at end |
#id ⇒ Object (readonly)
Returns the value of attribute id
25 26 27 |
# File 'lib/fizzy/generated/types.rb', line 25 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name
25 26 27 |
# File 'lib/fizzy/generated/types.rb', line 25 def name @name end |
#slug ⇒ Object (readonly)
Returns the value of attribute slug
25 26 27 |
# File 'lib/fizzy/generated/types.rb', line 25 def slug @slug end |
#url ⇒ Object (readonly)
Returns the value of attribute url
25 26 27 |
# File 'lib/fizzy/generated/types.rb', line 25 def url @url end |
#user ⇒ Object (readonly)
Returns the value of attribute user
25 26 27 |
# File 'lib/fizzy/generated/types.rb', line 25 def user @user end |
Class Method Details
.from_json(data) ⇒ Object
27 28 29 30 31 32 33 34 35 36 |
# File 'lib/fizzy/generated/types.rb', line 27 def self.from_json(data) new( id: data["id"], name: data["name"], slug: data["slug"], created_at: data["created_at"], url: data["url"], user: data["user"] ) end |