Class: Mollie::SMS
Constant Summary
Constants included from RequestOptions
Instance Attribute Summary collapse
-
#deliver_at ⇒ Object
Returns the value of attribute deliver_at.
-
#delivery_url ⇒ Object
Returns the value of attribute delivery_url.
-
#message_type ⇒ Object
Returns the value of attribute message_type.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ SMS
constructor
A new instance of SMS.
- #recipient=(recipient) ⇒ Object
- #uri ⇒ Object
Methods included from RequestOptions
Constructor Details
#initialize(options = {}) ⇒ SMS
Returns a new instance of SMS.
31 32 33 34 35 |
# File 'lib/mollie.rb', line 31 def initialize( = {}) .each_pair do |key,value| send("#{key}=", value) end end |
Instance Attribute Details
#deliver_at ⇒ Object
Returns the value of attribute deliver_at.
29 30 31 |
# File 'lib/mollie.rb', line 29 def deliver_at @deliver_at end |
#delivery_url ⇒ Object
Returns the value of attribute delivery_url.
29 30 31 |
# File 'lib/mollie.rb', line 29 def delivery_url @delivery_url end |
#message_type ⇒ Object
Returns the value of attribute message_type.
29 30 31 |
# File 'lib/mollie.rb', line 29 def end |
Instance Method Details
#recipient=(recipient) ⇒ Object
41 42 43 |
# File 'lib/mollie.rb', line 41 def recipient=(recipient) self.recipients = [recipient] end |
#uri ⇒ Object
37 38 39 |
# File 'lib/mollie.rb', line 37 def uri @uri || RequestOptions::DEFAULT_URI end |