Class: HubriseApp::Refresher::Catalog
- Inherits:
-
Base
- Object
- Base
- HubriseApp::Refresher::Catalog
show all
- Defined in:
- app/lib/hubrise_app/refresher/catalog.rb
Constant Summary
Constants inherited
from Base
Base::REFRESH_THRESHOLD
Class Method Summary
collapse
Methods inherited from Base
from_api_client, from_event, run
Class Method Details
.attributes_from_api_call(resource, api_client) ⇒ Object
6
7
8
9
10
|
# File 'app/lib/hubrise_app/refresher/catalog.rb', line 6
def attributes_from_api_call(resource, api_client)
{
api_data: fetch_api_data(resource.hr_id, api_client),
}
end
|
.attributes_from_event(event_params, api_client) ⇒ Object
12
13
14
15
16
17
18
|
# File 'app/lib/hubrise_app/refresher/catalog.rb', line 12
def attributes_from_event(event_params, api_client)
{
api_data:
fetch_api_data(event_params["catalog_id"], api_client),
}
end
|