Class: WaCloudApi::Message::Base
- Inherits:
-
Object
- Object
- WaCloudApi::Message::Base
- Defined in:
- lib/wa_cloud_api/message/base.rb
Instance Attribute Summary collapse
-
#messaging_product ⇒ Object
Returns the value of attribute messaging_product.
-
#recipient_type ⇒ Object
Returns the value of attribute recipient_type.
-
#to ⇒ Object
Returns the value of attribute to.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
- #deliver ⇒ Object
-
#initialize(to:, type:) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(to:, type:) ⇒ Base
Returns a new instance of Base.
6 7 8 9 10 11 |
# File 'lib/wa_cloud_api/message/base.rb', line 6 def initialize(to:, type:) @messaging_product = 'whatsapp' @recipient_type = 'individual' @to = to @type = type end |
Instance Attribute Details
#messaging_product ⇒ Object
Returns the value of attribute messaging_product.
4 5 6 |
# File 'lib/wa_cloud_api/message/base.rb', line 4 def messaging_product @messaging_product end |
#recipient_type ⇒ Object
Returns the value of attribute recipient_type.
4 5 6 |
# File 'lib/wa_cloud_api/message/base.rb', line 4 def recipient_type @recipient_type end |
#to ⇒ Object
Returns the value of attribute to.
4 5 6 |
# File 'lib/wa_cloud_api/message/base.rb', line 4 def to @to end |
#type ⇒ Object
Returns the value of attribute type.
4 5 6 |
# File 'lib/wa_cloud_api/message/base.rb', line 4 def type @type end |