Class: DotloopApi::EndPoints::ParamHelper

Inherits:
Object
  • Object
show all
Defined in:
lib/dotloop_api/end_points/param_helper.rb

Constant Summary collapse

MAX_BATCH_SIZE =
100
FILTER_OPTIONS =
%w[
  updated_min created_min transaction_type transaction_status
].freeze

Instance Method Summary collapse

Instance Method Details

#paramsObject



17
18
19
20
21
22
23
24
25
# File 'lib/dotloop_api/end_points/param_helper.rb', line 17

def params
  {
    batch_number: @batch_number.to_i,
    batch_size: size,
    filter: filter_string,
    include_details: @include_details,
    sort:
  }.delete_if { |_, v| should_delete(v) }
end