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.
12 13 14 15 |
# File 'lib/ebisu/models/payment_method.rb', line 12 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.
7 8 9 |
# File 'lib/ebisu/models/payment_method.rb', line 7 def code @code end |
#name ⇒ Object
Returns the value of attribute name.
11 12 13 |
# File 'lib/ebisu/models/payment_method.rb', line 11 def name @name end |