Class: Sinch::Request::SendSms
- Inherits:
-
Base
- Object
- Base
- Sinch::Request::SendSms
show all
- Defined in:
- lib/sinch/request/send_sms.rb
Overview
SMS Send Request [POST] /Sms/
Instance Attribute Summary
Attributes inherited from Base
#params
Instance Method Summary
collapse
Methods inherited from Base
#headers, #initialize, #url
Instance Method Details
#endpoint ⇒ Object
15
16
17
|
# File 'lib/sinch/request/send_sms.rb', line 15
def endpoint
"/v1/Sms/#{params[:phone_number]}"
end
|
#method ⇒ Object
7
8
9
|
# File 'lib/sinch/request/send_sms.rb', line 7
def method
:post
end
|
#payload ⇒ Object
11
12
13
|
# File 'lib/sinch/request/send_sms.rb', line 11
def payload
@payload ||= Builder::Request::SendSms.new(params).build
end
|