Class: Ravelin::PaymentMethods
- Inherits:
-
RavelinObject
- Object
- RavelinObject
- Ravelin::PaymentMethods
- Defined in:
- lib/ravelin/payment_methods.rb
Instance Attribute Summary collapse
-
#methods ⇒ Object
readonly
Returns the value of attribute methods.
Instance Method Summary collapse
-
#initialize(methods) ⇒ PaymentMethods
constructor
A new instance of PaymentMethods.
- #serializable_hash ⇒ Object
Methods inherited from RavelinObject
attr_accessor, attr_required, required_attributes, #validate
Constructor Details
#initialize(methods) ⇒ PaymentMethods
5 6 7 |
# File 'lib/ravelin/payment_methods.rb', line 5 def initialize(methods) @methods = methods end |
Instance Attribute Details
#methods ⇒ Object (readonly)
Returns the value of attribute methods.
3 4 5 |
# File 'lib/ravelin/payment_methods.rb', line 3 def methods @methods end |
Instance Method Details
#serializable_hash ⇒ Object
9 10 11 |
# File 'lib/ravelin/payment_methods.rb', line 9 def serializable_hash methods.map(&:serializable_hash) end |