Module: Kovid::Aggregators
- Included in:
- Tablelize
- Defined in:
- lib/kovid/aggregators.rb
Instance Method Summary collapse
- #africa_aggregate(africa_data) ⇒ Object
- #asia_aggregate(asia_data) ⇒ Object
- #eu_aggregate(eu_data) ⇒ Object
- #europe_aggregate(europe_data) ⇒ Object
- #south_america_aggregate(south_america_data) ⇒ Object
Instance Method Details
#africa_aggregate(africa_data) ⇒ Object
13 14 15 16 |
# File 'lib/kovid/aggregators.rb', line 13 def africa_aggregate(africa_data) aggregated_table(africa_data, 'Africa', Kovid::Request::AFRICA_ISOS, '🌍') end |
#asia_aggregate(asia_data) ⇒ Object
24 25 26 |
# File 'lib/kovid/aggregators.rb', line 24 def asia_aggregate(asia_data) aggregated_table(asia_data, 'Asia', Kovid::Request::ASIA_ISOS, '🌏') end |
#eu_aggregate(eu_data) ⇒ Object
5 6 7 |
# File 'lib/kovid/aggregators.rb', line 5 def eu_aggregate(eu_data) aggregated_table(eu_data, 'The EU', Kovid::Request::EU_ISOS, '🇪🇺') end |
#europe_aggregate(europe_data) ⇒ Object
9 10 11 |
# File 'lib/kovid/aggregators.rb', line 9 def europe_aggregate(europe_data) aggregated_table(europe_data, 'Europe', Kovid::Request::EUROPE_ISOS, '🏰') end |
#south_america_aggregate(south_america_data) ⇒ Object
18 19 20 21 22 |
# File 'lib/kovid/aggregators.rb', line 18 def south_america_aggregate(south_america_data) aggregated_table(south_america_data, 'South America', Kovid::Request::SOUTH_AMERICA_ISOS, '🌎') end |