Class: SevenBankFxRate::Elements::Country
- Inherits:
-
Object
- Object
- SevenBankFxRate::Elements::Country
- Defined in:
- lib/seven_bank_fx_rate/elements/country.rb
Overview
Corresponds to the country tag in xml: <country>
<countrycode>CN</countrycode>
<countryname>China</countryname>
<currency>
<currencycode>CNY</currencycode>
<currencyname>Chinese Yuan Renminbi</currencyname>
<fxrate>0.0636548</fxrate>
</currency>
<currency>
<currencycode>USD</currencycode>
<currencyname>US Dollar</currencyname>
<fxrate>0.0093211</fxrate>
</currency>
</country>
Instance Attribute Summary collapse
-
#country_code ⇒ Object
Returns the value of attribute country_code.
-
#country_name ⇒ Object
Returns the value of attribute country_name.
-
#currencies ⇒ Object
Returns the value of attribute currencies.
Instance Attribute Details
#country_code ⇒ Object
Returns the value of attribute country_code.
21 22 23 |
# File 'lib/seven_bank_fx_rate/elements/country.rb', line 21 def country_code @country_code end |
#country_name ⇒ Object
Returns the value of attribute country_name.
21 22 23 |
# File 'lib/seven_bank_fx_rate/elements/country.rb', line 21 def country_name @country_name end |
#currencies ⇒ Object
Returns the value of attribute currencies.
21 22 23 |
# File 'lib/seven_bank_fx_rate/elements/country.rb', line 21 def currencies @currencies end |