class Infobeep::SMSRequest
Public Instance Methods
hash_attributes()
click to toggle source
Calls superclass method
Infobeep::Model#hash_attributes
# File lib/infobeep/requests/sms_request.rb, line 15 def hash_attributes h = super h[:destinations] = [] h[:destinations] = h[:destinations] + destinations.collect{ |destination| destination.hash_attributes } unless to.empty? h[:destinations] << {to: to} end h.delete(:to) h end
http_method()
click to toggle source
# File lib/infobeep/requests/sms_request.rb, line 30 def http_method :post end
payload()
click to toggle source
# File lib/infobeep/requests/sms_request.rb, line 34 def payload bulk_sms_request = Infobeep::BulkSMSRequest.new bulk_sms_request.messages = [self] bulk_sms_request.payload end
response_class()
click to toggle source
# File lib/infobeep/requests/sms_request.rb, line 40 def response_class SMSResponse end
route()
click to toggle source
# File lib/infobeep/requests/sms_request.rb, line 26 def route 'sms/1/text/advanced' end