Class: BaseResource
- Inherits:
-
Object
show all
- Extended by:
- Presenters
- Defined in:
- lib/covid19/lib/base_resource.rb
Class Method Summary
collapse
Methods included from Presenters
present_as_json
Class Method Details
.by(country:) ⇒ Object
10
11
12
|
# File 'lib/covid19/lib/base_resource.rb', line 10
def self.by(country:)
present_as_json(repository.by_country(country: country))
end
|
.retrieve(**options) ⇒ Object
6
7
8
|
# File 'lib/covid19/lib/base_resource.rb', line 6
def self.retrieve(**options)
raise 'NotImplementedException::retrieve'
end
|