Module: LHS::Record::Request::ClassMethods

Defined in:
lib/lhs/concerns/record/request.rb

Instance Method Summary collapse

Instance Method Details

#request(options) ⇒ Object



12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/lhs/concerns/record/request.rb', line 12

def request(options)
  options ||= {}
  options = deep_merge_with_option_blocks(options)
  options = options.freeze
  if options.is_a?(Array)
    multiple_requests(
      filter_empty_request_options(options)
    )
  else
    single_request(options)
  end
end