module Pipedrive::Operations::Read
Public Instance Methods
all(params = {})
click to toggle source
# File lib/pipedrive/operations/read.rb, line 16 def all(params = {}) each(params).to_a end
chunk(params = {})
click to toggle source
# File lib/pipedrive/operations/read.rb, line 20 def chunk(params = {}) res = make_api_call(:get, params) return [] unless res.success? res end
each(params = {}, &block)
click to toggle source
# File lib/pipedrive/operations/read.rb, line 10 def each(params = {}, &block) return to_enum(:each, params) unless block_given? follow_pagination(:chunk, [], params, &block) end
find_by_id(id)
click to toggle source
# File lib/pipedrive/operations/read.rb, line 27 def find_by_id(id) make_api_call(:get, id) end