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
285 286 287 |
# File 'lib/fizzy/generated/types.rb', line 285 def body @body end |
#card ⇒ Object (readonly)
Returns the value of attribute card
285 286 287 |
# File 'lib/fizzy/generated/types.rb', line 285 def card @card end |
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at
285 286 287 |
# File 'lib/fizzy/generated/types.rb', line 285 def created_at @created_at end |
#creator ⇒ Object (readonly)
Returns the value of attribute creator
285 286 287 |
# File 'lib/fizzy/generated/types.rb', line 285 def creator @creator end |
#id ⇒ Object (readonly)
Returns the value of attribute id
285 286 287 |
# File 'lib/fizzy/generated/types.rb', line 285 def id @id end |
#reactions_url ⇒ Object (readonly)
Returns the value of attribute reactions_url
285 286 287 |
# File 'lib/fizzy/generated/types.rb', line 285 def reactions_url @reactions_url end |
#updated_at ⇒ Object (readonly)
Returns the value of attribute updated_at
285 286 287 |
# File 'lib/fizzy/generated/types.rb', line 285 def updated_at @updated_at end |
#url ⇒ Object (readonly)
Returns the value of attribute url
285 286 287 |
# File 'lib/fizzy/generated/types.rb', line 285 def url @url end |
Class Method Details
.from_json(data) ⇒ Object
287 288 289 290 291 292 293 294 295 296 297 298 |
# File 'lib/fizzy/generated/types.rb', line 287 def self.from_json(data) new( id: data["id"], created_at: data["created_at"], updated_at: data["updated_at"], body: data["body"] && RichTextBody.from_json(data["body"]), creator: data["creator"] && User.from_json(data["creator"]), card: data["card"] && CardRef.from_json(data["card"]), reactions_url: data["reactions_url"], url: data["url"] ) end |