Class: Ebisu::PaymentMethod
- Inherits:
-
Object
- Object
- Ebisu::PaymentMethod
- Defined in:
- lib/ebisu/models/payment_method.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(data) ⇒ PaymentMethod
constructor
A new instance of PaymentMethod.
Constructor Details
#initialize(data) ⇒ PaymentMethod
Returns a new instance of PaymentMethod.
10 11 12 13 |
# File 'lib/ebisu/models/payment_method.rb', line 10 def initialize(data) @code = data.dig('Code').to_i @name = data.dig('Name') end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
5 6 7 |
# File 'lib/ebisu/models/payment_method.rb', line 5 def code @code end |
#name ⇒ Object
Returns the value of attribute name.
9 10 11 |
# File 'lib/ebisu/models/payment_method.rb', line 9 def name @name end |