Class: Ebisu::PaymentMethod

Inherits:
Object
  • Object
show all
Defined in:
lib/ebisu/models/payment_method.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#codeObject

Returns the value of attribute code.



5
6
7
# File 'lib/ebisu/models/payment_method.rb', line 5

def code
  @code
end

#nameObject

Returns the value of attribute name.



9
10
11
# File 'lib/ebisu/models/payment_method.rb', line 9

def name
  @name
end