module ISO3166::CountryFinderMethods
def parse_attributes(attribute, val)
def parse_attributes(attribute, val) raise "Invalid attribute name '#{attribute}'" unless searchable_attribute?(attribute.to_sym) attributes = Array(attribute.to_s) if attribute.to_s == 'any_name' attributes = %w[iso_long_name iso_short_name unofficial_names translated_names] end [attributes, parse_value(val)] end