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



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

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

.countries_listArray<String>

World countries list



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



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

def df
  @@df
end