Class: Fizzy::Types::RichTextBody

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#htmlObject (readonly)

Returns the value of attribute html

Returns:

  • (Object)

    the current value of html



843
844
845
# File 'lib/fizzy/generated/types.rb', line 843

def html
  @html
end

#plain_textObject (readonly)

Returns the value of attribute plain_text

Returns:

  • (Object)

    the current value of plain_text



843
844
845
# File 'lib/fizzy/generated/types.rb', line 843

def plain_text
  @plain_text
end

Class Method Details

.from_json(data) ⇒ Object

Parameters:

  • data (Hash)

    raw JSON response



845
846
847
848
849
850
# File 'lib/fizzy/generated/types.rb', line 845

def self.from_json(data)
  new(
    plain_text: data["plain_text"],
    html: data["html"]
  )
end