Class: CloudWaba::Models::Templates::BodyComponent

Inherits:
T::Struct
  • Object
show all
Defined in:
lib/cloud_waba/models/templates/body_component.rb

Instance Method Summary collapse

Instance Method Details

#serializeObject



12
13
14
15
16
17
18
# File 'lib/cloud_waba/models/templates/body_component.rb', line 12

def serialize
  {
    type: type.serialize,
    text: text,
    example: { body_text: [ example.values ] }
  }
end