class LUSI::API::Country::Country
Attributes
iso_alpha2_code[RW]
@!attribute [rw] iso_alpha2_code
@return [String, nil] the ISO alpha-2 code for the country
Public Class Methods
new(xml = nil, lookup = nil, iso_alpha2_code: nil, **kwargs)
click to toggle source
Initialises a new Country
instance @param (see LUSI::API::Core::Code#initialize) @param iso_alpha2_code
[String, nil] the default ISO alpha-2 code for the country @return [void]
Calls superclass method
LUSI::API::Core::BasicCode::new
# File lib/lusi_api/country.rb, line 20 def initialize(xml = nil, lookup = nil, iso_alpha2_code: nil, **kwargs) super(xml, lookup, **kwargs) @iso_alpha2_code = LUSI::API::Core::XML.xml_content_at(xml, 'xmlns:ISOAlpha2Code', iso_alpha2_code) end