Class: Covid::Result

Inherits:
Array
  • Object
show all
Defined in:
lib/covid.rb

Instance Method Summary collapse

Instance Method Details

#country(name) ⇒ Object Also known as: region



11
12
13
# File 'lib/covid.rb', line 11

def country(name)
  filter("Country/Region", name)
end

#state(name) ⇒ Object Also known as: province



15
16
17
# File 'lib/covid.rb', line 15

def state(name)
  filter("Province/State", name)
end