Class: Gateway::Requests::SendMessageRequest
- Inherits:
-
CommonRequest
- Object
- CommonRequest
- Gateway::Requests::SendMessageRequest
- Defined in:
- lib/gateway/requests/send_message_request.rb
Overview
Request to send message via gateway
Constant Summary collapse
- TRANSPORT_WA =
transport whatsapp
'whatsapp'
- TRANSPORT_VIBER =
transport viber
'viber'
- TRANSPORT_TG =
transport telegram
'telegram'
- TRANSPORT_SMS =
transport modem
'modem'
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#devicePhone ⇒ Object
Returns the value of attribute devicePhone.
-
#image ⇒ Object
Returns the value of attribute image.
-
#phone ⇒ Object
Returns the value of attribute phone.
-
#transport ⇒ Object
Returns the value of attribute transport.
Class Method Summary collapse
-
.possible_transports ⇒ Object
Possible transports.
Methods inherited from CommonRequest
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
14 15 16 |
# File 'lib/gateway/requests/send_message_request.rb', line 14 def body @body end |
#devicePhone ⇒ Object
Returns the value of attribute devicePhone.
14 15 16 |
# File 'lib/gateway/requests/send_message_request.rb', line 14 def devicePhone @devicePhone end |
#image ⇒ Object
Returns the value of attribute image.
14 15 16 |
# File 'lib/gateway/requests/send_message_request.rb', line 14 def image @image end |
#phone ⇒ Object
Returns the value of attribute phone.
14 15 16 |
# File 'lib/gateway/requests/send_message_request.rb', line 14 def phone @phone end |
#transport ⇒ Object
Returns the value of attribute transport.
14 15 16 |
# File 'lib/gateway/requests/send_message_request.rb', line 14 def transport @transport end |
Class Method Details
.possible_transports ⇒ Object
Possible transports
19 20 21 |
# File 'lib/gateway/requests/send_message_request.rb', line 19 def self.possible_transports [TRANSPORT_WA, TRANSPORT_VIBER, TRANSPORT_TG, TRANSPORT_SMS] end |