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'
- TRANSPORT_FACEBOOK =
transport facebook
'facebook'
- TRANSPORT_VK =
transport vk
'vk'
- TRANSPORT_EXTERNAL =
transport external
'external'
- TRANSPORT_WIDGET =
transport widget
'widget'
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.
-
#messageId ⇒ Object
Returns the value of attribute messageId.
-
#phone ⇒ Object
Returns the value of attribute phone.
-
#plannedDate ⇒ Object
Returns the value of attribute plannedDate.
-
#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.
18 19 20 |
# File 'lib/gateway/requests/send_message_request.rb', line 18 def body @body end |
#devicePhone ⇒ Object
Returns the value of attribute devicePhone.
18 19 20 |
# File 'lib/gateway/requests/send_message_request.rb', line 18 def devicePhone @devicePhone end |
#image ⇒ Object
Returns the value of attribute image.
18 19 20 |
# File 'lib/gateway/requests/send_message_request.rb', line 18 def image @image end |
#messageId ⇒ Object
Returns the value of attribute messageId.
18 19 20 |
# File 'lib/gateway/requests/send_message_request.rb', line 18 def @messageId end |
#phone ⇒ Object
Returns the value of attribute phone.
18 19 20 |
# File 'lib/gateway/requests/send_message_request.rb', line 18 def phone @phone end |
#plannedDate ⇒ Object
Returns the value of attribute plannedDate.
18 19 20 |
# File 'lib/gateway/requests/send_message_request.rb', line 18 def plannedDate @plannedDate end |
#transport ⇒ Object
Returns the value of attribute transport.
18 19 20 |
# File 'lib/gateway/requests/send_message_request.rb', line 18 def transport @transport end |
Class Method Details
.possible_transports ⇒ Object
Possible transports
23 24 25 |
# File 'lib/gateway/requests/send_message_request.rb', line 23 def self.possible_transports [TRANSPORT_WA, TRANSPORT_VIBER, TRANSPORT_TG, TRANSPORT_SMS, TRANSPORT_FACEBOOK, TRANSPORT_VK, TRANSPORT_EXTERNAL, TRANSPORT_WIDGET] end |