lib/active_merchant/country.rb in activemerchant-1.133.0 vs lib/active_merchant/country.rb in activemerchant-1.137.0
- old
+ new
@@ -7,9 +7,10 @@
class CountryCodeFormatError < StandardError
end
class CountryCode
attr_reader :value, :format
+
def initialize(value)
@value = value.to_s.upcase
detect_format
end