Class: Fizzy::Types::Comment
- Inherits:
-
Data
- Object
- Data
- Fizzy::Types::Comment
- Defined in:
- lib/fizzy/generated/types.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#card ⇒ Object
readonly
Returns the value of attribute card.
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#creator ⇒ Object
readonly
Returns the value of attribute creator.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#reactions_url ⇒ Object
readonly
Returns the value of attribute reactions_url.
-
#updated_at ⇒ Object
readonly
Returns the value of attribute updated_at.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Class Method Summary collapse
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body
274 275 276 |
# File 'lib/fizzy/generated/types.rb', line 274 def body @body end |
#card ⇒ Object (readonly)
Returns the value of attribute card
274 275 276 |
# File 'lib/fizzy/generated/types.rb', line 274 def card @card end |
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at
274 275 276 |
# File 'lib/fizzy/generated/types.rb', line 274 def created_at @created_at end |
#creator ⇒ Object (readonly)
Returns the value of attribute creator
274 275 276 |
# File 'lib/fizzy/generated/types.rb', line 274 def creator @creator end |
#id ⇒ Object (readonly)
Returns the value of attribute id
274 275 276 |
# File 'lib/fizzy/generated/types.rb', line 274 def id @id end |
#reactions_url ⇒ Object (readonly)
Returns the value of attribute reactions_url
274 275 276 |
# File 'lib/fizzy/generated/types.rb', line 274 def reactions_url @reactions_url end |
#updated_at ⇒ Object (readonly)
Returns the value of attribute updated_at
274 275 276 |
# File 'lib/fizzy/generated/types.rb', line 274 def updated_at @updated_at end |
#url ⇒ Object (readonly)
Returns the value of attribute url
274 275 276 |
# File 'lib/fizzy/generated/types.rb', line 274 def url @url end |
Class Method Details
.from_json(data) ⇒ Object
276 277 278 279 280 281 282 283 284 285 286 287 |
# File 'lib/fizzy/generated/types.rb', line 276 def self.from_json(data) new( id: data["id"], created_at: data["created_at"], updated_at: data["updated_at"], body: data["body"], creator: data["creator"], card: data["card"], reactions_url: data["reactions_url"], url: data["url"] ) end |