Class: Keysms::KeyteqService
- Inherits:
-
Object
- Object
- Keysms::KeyteqService
- Defined in:
- lib/keysms.rb
Instance Attribute Summary collapse
-
#result ⇒ Object
Returns the value of attribute result.
Instance Method Summary collapse
- #authenticate(username, key) ⇒ Object
-
#initialize(url = "http://app.keysms.no", options = {}) ⇒ KeyteqService
constructor
A new instance of KeyteqService.
Constructor Details
#initialize(url = "http://app.keysms.no", options = {}) ⇒ KeyteqService
Returns a new instance of KeyteqService.
12 13 14 15 16 |
# File 'lib/keysms.rb', line 12 def initialize(url = "http://app.keysms.no", = {}) @options, @payload, @values = {}, {}, {} @options = @options.merge() @options[:url] = url end |
Instance Attribute Details
#result ⇒ Object
Returns the value of attribute result.
10 11 12 |
# File 'lib/keysms.rb', line 10 def result @result end |
Instance Method Details
#authenticate(username, key) ⇒ Object
18 19 20 21 22 23 |
# File 'lib/keysms.rb', line 18 def authenticate(username, key) @options[:auth] = {} @options[:auth][:username] = username @options[:auth][:key] = key self end |