class Paymill::Merchant
Attributes
country[RW]
currencies[RW]
email[RW]
identifier_key[RW]
locale[RW]
methods[RW]
Public Class Methods
new( json )
click to toggle source
# File lib/paymill/models/merchant.rb, line 6 def initialize( json ) deserialize( json ) end
Private Instance Methods
deserialize( json )
click to toggle source
# File lib/paymill/models/merchant.rb, line 11 def deserialize( json ) case value.class.name when 'Array' instance_variable_set( "@#{key}s", value.map { |e| e } ) else instance_variable_set( "@#{key}", (Integer( value ) rescue value) ) end end