Class: HubriseApp::Refresher::CustomerList
- Inherits:
-
Base
- Object
- Base
- HubriseApp::Refresher::CustomerList
show all
- Defined in:
- app/lib/hubrise_app/refresher/customer_list.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
11
12
|
# File 'app/lib/hubrise_app/refresher/customer_list.rb', line 6
def attributes_from_api_call(resource, api_client)
{
api_data: cleanup_api_data(
api_client.get_customer_list(resource.hr_id).data
),
}
end
|
.attributes_from_event(event_params, _api_client) ⇒ Object
14
15
16
17
18
|
# File 'app/lib/hubrise_app/refresher/customer_list.rb', line 14
def attributes_from_event(event_params, _api_client)
{
api_data: cleanup_api_data(event_params["new_state"]),
}
end
|