Class: PennySMSMuncher::PennySMS::JSONRequest
- Defined in:
- lib/penny_sms.rb
Overview
DOES NOT WORK 2009-12-22
Instance Attribute Summary
Attributes inherited from Request
#api_key, #from_email, #phone_number, #response, #text, #url
Instance Method Summary collapse
-
#initialize(*args) ⇒ JSONRequest
constructor
A new instance of JSONRequest.
- #template ⇒ Object
Methods inherited from Request
Constructor Details
#initialize(*args) ⇒ JSONRequest
Returns a new instance of JSONRequest.
107 108 109 110 111 112 113 |
# File 'lib/penny_sms.rb', line 107 def initialize(*args) raise NoMethodError, "JSONRequest not working. Figure it out though and let me know" @api_url = 'http://api.pennysms.com/jsonrpc' @rpc_method = 'send' @content_type = 'text/json' super end |
Instance Method Details
#template ⇒ Object
115 116 117 118 119 |
# File 'lib/penny_sms.rb', line 115 def template {:method => @rpc_method, :params => [api_key,from_email,phone_number,text] }.to_json end |