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



405
406
407
# File 'lib/fizzy/generated/types.rb', line 405

def body
  @body
end

#created_atObject (readonly)

Returns the value of attribute created_at

Returns:

  • (Object)

    the current value of created_at



405
406
407
# File 'lib/fizzy/generated/types.rb', line 405

def created_at
  @created_at
end

Class Method Details

.from_json(data) ⇒ Object

Parameters:

  • data (Hash)

    raw JSON response



407
408
409
410
411
412
# File 'lib/fizzy/generated/types.rb', line 407

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