Class: WaCloudApi::Message::Text

Inherits:
Base
  • Object
show all
Defined in:
lib/wa_cloud_api/message/text.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#messaging_product, #recipient_type, #to, #type

Instance Method Summary collapse

Methods inherited from Base

#deliver

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

#bodyObject

Returns the value of attribute body.



9
10
11
# File 'lib/wa_cloud_api/message/text.rb', line 9

def body
  @body
end

#preview_urlObject

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