Module: PostcodeAnywhere::Utils

Instance Method Summary collapse

Instance Method Details

#perform_with_object(request_method, path, options, klass, body_hash = {}) ⇒ Object



5
6
7
8
# File 'lib/postcode_anywhere/utils.rb', line 5

def perform_with_object(request_method, path, options, klass, body_hash = {})
  request = PostcodeAnywhere::Request.new(self, request_method, path, body_hash, options)
  request.perform_with_object(klass)
end

#perform_with_objects(request_method, path, options, klass, body_hash = {}) ⇒ Object



10
11
12
13
# File 'lib/postcode_anywhere/utils.rb', line 10

def perform_with_objects(request_method, path, options, klass, body_hash = {})
  request = PostcodeAnywhere::Request.new(self, request_method, path, body_hash, options)
  request.perform_with_objects(klass)
end