Class: AdaptivePay::Recipient
- Inherits:
-
Object
- Object
- AdaptivePay::Recipient
- Defined in:
- lib/adaptive_pay/recipient.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
Returns the value of attribute amount.
-
#email ⇒ Object
Returns the value of attribute email.
-
#primary ⇒ Object
Returns the value of attribute primary.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Recipient
constructor
A new instance of Recipient.
- #primary? ⇒ Boolean
Constructor Details
#initialize(options = {}) ⇒ Recipient
Returns a new instance of Recipient.
6 7 8 9 10 |
# File 'lib/adaptive_pay/recipient.rb', line 6 def initialize(={}) .each do |k, v| send "#{k}=", v end end |
Instance Attribute Details
#amount ⇒ Object
Returns the value of attribute amount.
4 5 6 |
# File 'lib/adaptive_pay/recipient.rb', line 4 def amount @amount end |
#email ⇒ Object
Returns the value of attribute email.
4 5 6 |
# File 'lib/adaptive_pay/recipient.rb', line 4 def email @email end |
#primary ⇒ Object
Returns the value of attribute primary.
4 5 6 |
# File 'lib/adaptive_pay/recipient.rb', line 4 def primary @primary end |
Instance Method Details
#primary? ⇒ Boolean
12 13 14 |
# File 'lib/adaptive_pay/recipient.rb', line 12 def primary? !!@primary end |