Class: Infobeep::BulkSMSRequest

Inherits:
BaseRequestModel show all
Defined in:
lib/infobeep/requests/bulk_sms_request.rb

Instance Method Summary collapse

Methods inherited from BaseRequestModel

#headers, #payload

Instance Method Details

#hash_attributesObject



8
9
10
11
12
# File 'lib/infobeep/requests/bulk_sms_request.rb', line 8

def hash_attributes
  h = super
  h[:messages] = messages.collect{ |message| message.hash_attributes }
  h
end

#http_methodObject



14
15
16
# File 'lib/infobeep/requests/bulk_sms_request.rb', line 14

def http_method
  :post
end

#response_classObject



22
23
24
# File 'lib/infobeep/requests/bulk_sms_request.rb', line 22

def response_class
  SMSResponse
end

#routeObject



18
19
20
# File 'lib/infobeep/requests/bulk_sms_request.rb', line 18

def route
  'sms/1/text/advanced'
end