Class: Nyaplot::Countries

Inherits:
Object
  • Object
show all
Defined in:
lib/mapnya/countries.rb

Overview

The wrapper for countries

Constant Summary collapse

@@df =
df

Class Method Summary collapse

Class Method Details

.cca3_listArray<String>

CCA3 country code

Returns:

  • (Array<String>)

    tye list of cca3 code



34
35
36
# File 'lib/mapnya/countries.rb', line 34

def cca3_list
  @@df[:cca3].to_a
end

.countries_listArray<String>

World countries list

Returns:

  • (Array<String>)

    the list of world countries



28
29
30
# File 'lib/mapnya/countries.rb', line 28

def countries_list
  @@df[:name].to_a
end

.dfDataFrame

The dataframe as the wrapper of countries

Returns:



40
41
42
# File 'lib/mapnya/countries.rb', line 40

def df
  @@df
end