Class: WaCloudApi::Message::Text
- Defined in:
- lib/wa_cloud_api/message/text.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#preview_url ⇒ Object
Returns the value of attribute preview_url.
Attributes inherited from Base
#messaging_product, #recipient_type, #to, #type
Instance Method Summary collapse
-
#initialize(to:, body:, preview_url: false) ⇒ Text
constructor
A new instance of Text.
Methods inherited from Base
Constructor Details
#initialize(to:, body:, preview_url: false) ⇒ Text
Returns a new instance of Text.
11 12 13 14 15 |
# File 'lib/wa_cloud_api/message/text.rb', line 11 def initialize(to:, body:, preview_url: false) @body = body @preview_url = preview_url || false super(to: to, type: 'text') end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
9 10 11 |
# File 'lib/wa_cloud_api/message/text.rb', line 9 def body @body end |
#preview_url ⇒ Object
Returns the value of attribute preview_url.
9 10 11 |
# File 'lib/wa_cloud_api/message/text.rb', line 9 def preview_url @preview_url end |