module RootInsurance::Api::Call

Public Instance Methods

get_call(id:) click to toggle source

Get a specific call

@param [String] id The unique identifier of the call @return [Hash]

@example

client.get_call(id: 'd3d13c48-4dc3-4816-8d01-de3215878225')
# File lib/root_insurance/api/call.rb, line 21
def get_call(id:)
  get("calls/#{id}")
end
list_call_events(id:) click to toggle source

List a call's events

@param [String] id The unique identifier of the call @return [Hash]

@example

client.list_call_events(id: 'd3d13c48-4dc3-4816-8d01-de3215878225')
# File lib/root_insurance/api/call.rb, line 32
def list_call_events(id:)
  get("calls/#{id}/events")
end
list_calls() click to toggle source

List all the logged calls

@return [Hash]

@example

client.list_calls
# File lib/root_insurance/api/call.rb, line 10
def list_calls
  get(:calls)
end