Module: QboApi::All

Included in:
QboApi
Defined in:
lib/qbo_api/all.rb

Instance Method Summary collapse

Instance Method Details

#all(entity, max: 1000, select: nil, inactive: false, &block) ⇒ Object



4
5
6
7
8
9
10
11
12
# File 'lib/qbo_api/all.rb', line 4

def all(entity, max: 1000, select: nil, inactive: false, &block)
  enumerator = create_all_enumerator(entity, max: max, select: select, inactive: inactive)

  if block_given?
    enumerator.each(&block)
  else
    enumerator
  end
end