Class: Fizzy::Types::CreateCommentRequestContent

Inherits:
Data
  • Object
show all
Defined in:
lib/fizzy/generated/types.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body

Returns:

  • (Object)

    the current value of body



416
417
418
# File 'lib/fizzy/generated/types.rb', line 416

def body
  @body
end

#created_atObject (readonly)

Returns the value of attribute created_at

Returns:

  • (Object)

    the current value of created_at



416
417
418
# File 'lib/fizzy/generated/types.rb', line 416

def created_at
  @created_at
end

Class Method Details

.from_json(data) ⇒ Object

Parameters:

  • data (Hash)

    raw JSON response



418
419
420
421
422
423
# File 'lib/fizzy/generated/types.rb', line 418

def self.from_json(data)
  new(
    body: data["body"],
    created_at: data["created_at"]
  )
end