Class: Gateway::Requests::SendMessageRequest

Inherits:
CommonRequest show all
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

Class Method Summary collapse

Methods inherited from CommonRequest

#attributes

Instance Attribute Details

#bodyObject

Returns the value of attribute body.



14
15
16
# File 'lib/gateway/requests/send_message_request.rb', line 14

def body
  @body
end

#devicePhoneObject

Returns the value of attribute devicePhone.



14
15
16
# File 'lib/gateway/requests/send_message_request.rb', line 14

def devicePhone
  @devicePhone
end

#imageObject

Returns the value of attribute image.



14
15
16
# File 'lib/gateway/requests/send_message_request.rb', line 14

def image
  @image
end

#phoneObject

Returns the value of attribute phone.



14
15
16
# File 'lib/gateway/requests/send_message_request.rb', line 14

def phone
  @phone
end

#transportObject

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_transportsObject

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