Class ActiveMerchant::CountryCode
In: lib/active_merchant/lib/country.rb
Parent: Object

Methods

new   to_s  

Attributes

format  [R] 
value  [R] 

Public Class methods

[Source]

    # File lib/active_merchant/lib/country.rb, line 10
10:     def initialize(value)
11:       @value = value.to_s.upcase
12:       detect_format
13:     end

Public Instance methods

[Source]

    # File lib/active_merchant/lib/country.rb, line 15
15:     def to_s
16:       value
17:     end

[Validate]