Class: HipcallSdk::CallResource
Instance Attribute Summary
Attributes inherited from Resource
#client
Instance Method Summary
collapse
Methods inherited from Resource
#initialize
Instance Method Details
#list(**params) ⇒ Object
3
4
5
6
|
# File 'lib/hipcall/resources/calls.rb', line 3
def list(**params)
response = get_request("calls", params: params)
Collection.from_response(response, key: "data", type: Call)
end
|
#retrieve(year:, mounth:, day:, call_uuid:) ⇒ Object
8
9
10
|
# File 'lib/hipcall/resources/calls.rb', line 8
def retrieve(year:, mounth:, day:, call_uuid:)
Call.new get_request("calls/#{year}/#{mounth}/#{day}/#{call_uuid}").body.dig("data")
end
|