Class: ISO4217::Code
- Inherits:
-
Object
- Object
- ISO4217::Code
- Defined in:
- lib/iso4217.rb
Instance Attribute Summary collapse
-
#ccc ⇒ Object
readonly
Returns the value of attribute ccc.
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#currency ⇒ Object
readonly
Returns the value of attribute currency.
-
#locations ⇒ Object
readonly
Returns the value of attribute locations.
-
#num ⇒ Object
readonly
Returns the value of attribute num.
Instance Method Summary collapse
-
#initialize(table) ⇒ Code
constructor
A new instance of Code.
- #obsolete ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(table) ⇒ Code
Returns a new instance of Code.
7 8 9 10 11 12 13 14 |
# File 'lib/iso4217.rb', line 7 def initialize(table) @code = table[:code] @num = table[:num] @locations = table[:locations] @currency = table[:currency] @ccc = table[:ccc] @obsolete = table[:obsolete] end |
Instance Attribute Details
#ccc ⇒ Object (readonly)
Returns the value of attribute ccc.
5 6 7 |
# File 'lib/iso4217.rb', line 5 def ccc @ccc end |
#code ⇒ Object (readonly)
Returns the value of attribute code.
5 6 7 |
# File 'lib/iso4217.rb', line 5 def code @code end |
#currency ⇒ Object (readonly)
Returns the value of attribute currency.
5 6 7 |
# File 'lib/iso4217.rb', line 5 def currency @currency end |
#locations ⇒ Object (readonly)
Returns the value of attribute locations.
5 6 7 |
# File 'lib/iso4217.rb', line 5 def locations @locations end |
#num ⇒ Object (readonly)
Returns the value of attribute num.
5 6 7 |
# File 'lib/iso4217.rb', line 5 def num @num end |
Instance Method Details
#obsolete ⇒ Object
18 |
# File 'lib/iso4217.rb', line 18 def obsolete; CODE[@obsolete]; end |
#to_s ⇒ Object
16 |
# File 'lib/iso4217.rb', line 16 def to_s; @currency; end |