Sha256: d507dfeb41acba891d243314cc75e6ffd6a580f2eab735ffd592a084909ead6b

Contents?: true

Size: 806 Bytes

Versions: 14

Compression:

Stored size: 806 Bytes

Contents

# frozen_string_literal: true

module Kovid
  module Aggregators
    def eu_aggregate(eu_data)
      aggregated_table(eu_data, 'The EU', Kovid::Request::EU_ISOS, '🇪🇺')
    end

    def europe_aggregate(europe_data)
      aggregated_table(europe_data, 'Europe', Kovid::Request::EUROPE_ISOS, '🏰')
    end

    def africa_aggregate(africa_data)
      aggregated_table(africa_data, 'Africa',
                       Kovid::Request::AFRICA_ISOS, '🌍')
    end

    def south_america_aggregate(south_america_data)
      aggregated_table(south_america_data,
                       'South America',
                       Kovid::Request::SOUTH_AMERICA_ISOS, '🌎')
    end

    def asia_aggregate(asia_data)
      aggregated_table(asia_data, 'Asia', Kovid::Request::ASIA_ISOS, '🌏')
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
kovid-0.7.1 lib/kovid/aggregators.rb
kovid-0.7.0 lib/kovid/aggregators.rb
kovid-0.6.15 lib/kovid/aggregators.rb
kovid-0.6.14 lib/kovid/aggregators.rb
kovid-0.6.13 lib/kovid/aggregators.rb
kovid-0.6.12 lib/kovid/aggregators.rb
kovid-0.6.11 lib/kovid/aggregators.rb
kovid-0.6.10 lib/kovid/aggregators.rb
kovid-0.6.9 lib/kovid/aggregators.rb
kovid-0.6.8 lib/kovid/aggregators.rb
kovid-0.6.7 lib/kovid/aggregators.rb
kovid-0.6.5 lib/kovid/aggregators.rb
kovid-0.6.4 lib/kovid/aggregators.rb
kovid-0.6.3 lib/kovid/aggregators.rb