class SmswayApi::Method
Public Instance Methods
build_xml() { |xml| ... }
click to toggle source
# File lib/smsway_api/method.rb, line 4 def build_xml xml = Builder::XmlMarkup.new xml.instruct! xml.request do yield(xml) if block_given? xml.security do xml.login(value: SmswayApi.login) xml.password(value: SmswayApi.password) end end xml.target! end
http_verb()
click to toggle source
# File lib/smsway_api/method.rb, line 25 def http_verb :post end
parse_response(response)
click to toggle source
# File lib/smsway_api/method.rb, line 17 def parse_response response raise 'not implemented' end
uri()
click to toggle source
# File lib/smsway_api/method.rb, line 21 def uri '' end