Class: AbtainBilling::CountryCode
- Inherits:
-
Object
- Object
- AbtainBilling::CountryCode
- Defined in:
- lib/abtain_billing/lib/country.rb
Instance Attribute Summary collapse
-
#format ⇒ Object
readonly
Returns the value of attribute format.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value) ⇒ CountryCode
constructor
A new instance of CountryCode.
- #to_s ⇒ Object
Constructor Details
#initialize(value) ⇒ CountryCode
Returns a new instance of CountryCode.
13 14 15 16 |
# File 'lib/abtain_billing/lib/country.rb', line 13 def initialize(value) @value = value.to_s.upcase detect_format end |
Instance Attribute Details
#format ⇒ Object (readonly)
Returns the value of attribute format.
12 13 14 |
# File 'lib/abtain_billing/lib/country.rb', line 12 def format @format end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
12 13 14 |
# File 'lib/abtain_billing/lib/country.rb', line 12 def value @value end |
Instance Method Details
#to_s ⇒ Object
18 19 20 |
# File 'lib/abtain_billing/lib/country.rb', line 18 def to_s value end |