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



832
833
834
# File 'lib/fizzy/generated/types.rb', line 832

def html
  @html
end

#plain_textObject (readonly)

Returns the value of attribute plain_text

Returns:

  • (Object)

    the current value of plain_text



832
833
834
# File 'lib/fizzy/generated/types.rb', line 832

def plain_text
  @plain_text
end

Class Method Details

.from_json(data) ⇒ Object

Parameters:

  • data (Hash)

    raw JSON response



834
835
836
837
838
839
# File 'lib/fizzy/generated/types.rb', line 834

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