Class: Nyaplot::Countries
- Inherits:
-
Object
- Object
- Nyaplot::Countries
- Defined in:
- lib/mapnya/countries.rb
Overview
The wrapper for countries
Constant Summary collapse
- @@df =
df
Class Method Summary collapse
-
.cca3_list ⇒ Array<String>
CCA3 country code.
-
.countries_list ⇒ Array<String>
World countries list.
-
.df ⇒ DataFrame
The dataframe as the wrapper of countries.
Class Method Details
.cca3_list ⇒ Array<String>
CCA3 country code
34 35 36 |
# File 'lib/mapnya/countries.rb', line 34 def cca3_list @@df[:cca3].to_a end |
.countries_list ⇒ Array<String>
World countries list
28 29 30 |
# File 'lib/mapnya/countries.rb', line 28 def countries_list @@df[:name].to_a end |
.df ⇒ DataFrame
The dataframe as the wrapper of countries
40 41 42 |
# File 'lib/mapnya/countries.rb', line 40 def df @@df end |