Method: MrCommon::Country.name_for

Defined in:
app/models/mr_common/country.rb

.name_for(code) ⇒ String

Returns the name of the country for that code.

Parameters:

  • code (String)

    a two letter country code

Returns:

  • (String)

    the name of the country for that code



33
34
35
# File 'app/models/mr_common/country.rb', line 33

def name_for(code)
  Carmen::Country.alpha_2_coded(code).name
end