Class: Covid19::News

Inherits:
BaseResource show all
Defined in:
lib/covid19/lib/news.rb

Class Method Summary collapse

Methods inherited from BaseResource

by

Methods included from Presenters

#present_as_json

Class Method Details

.by_country(country:) ⇒ Object



9
10
11
# File 'lib/covid19/lib/news.rb', line 9

def self.by_country(country:)
  raise 'NotYetImplementedError::News'
end

.retrieve(**options) ⇒ Object



5
6
7
# File 'lib/covid19/lib/news.rb', line 5

def self.retrieve(**options)
  present_as_json(repository.retrieve(options))
end