Class: SevenBankFxRate::Elements::Country

Inherits:
Object
  • Object
show all
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

Instance Attribute Details

#country_codeObject

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_nameObject

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

#currenciesObject

Returns the value of attribute currencies.



21
22
23
# File 'lib/seven_bank_fx_rate/elements/country.rb', line 21

def currencies
  @currencies
end