Method: BaseCRM::CallOutcomesService#where

Defined in:
lib/basecrm/services/call_outcomes_service.rb

#where(options = {}) ⇒ Array<CallOutcome>

Retrieve all call outcomes

get ‘/call_outcomes’

Returns all call outcomes available to the user, according to the parameters provided Call outcomes are always sorted by id in ascending order

Options Hash (options):

  • :page (Integer) — default: 1

    Page number to start from. Page numbering starts at 1, and omitting the ‘page` parameter will return the first page.

  • :per_page (Integer) — default: 25

    Number of records to return per page. The default limit is 25 and the maximum number that can be returned at one time is 100.



30
31
32
33
34
# File 'lib/basecrm/services/call_outcomes_service.rb', line 30

def where(options = {})
  _, _, root = @client.get("/call_outcomes", options)

  root[:items].map{ |item| CallOutcome.new(item[:data]) }
end