Method: ActiveMerchant::Country#initialize

Defined in:
lib/active_merchant/country.rb

#initialize(options = {}) ⇒ Country

Returns a new instance of Country.



41
42
43
44
# File 'lib/active_merchant/country.rb', line 41

def initialize(options = {})
  @name = options.delete(:name)
  @codes = options.collect { |_k, v| CountryCode.new(v) }
end