Sha256: 6cbf7a33ab16784a7619b42d759b1397b8e21e285480c86776d61bb819978395

Contents?: true

Size: 284 Bytes

Versions: 5

Compression:

Stored size: 284 Bytes

Contents

module Brightpearl
  module APIOperations
    module Get
      def get(id_set, query_params = nil)
        path = "#{resource_path}/#{id_set}"
        path = "#{path}?#{to_query(query_params)}" if query_params
        send_request(path: path, method: :get)
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ruby-brightpearl-0.4.0 lib/brightpearl/api_operations/get.rb
ruby-brightpearl-0.3.0 lib/brightpearl/api_operations/get.rb
ruby-brightpearl-0.2.0 lib/brightpearl/api_operations/get.rb
ruby-brightpearl-0.1.01 lib/brightpearl/api_operations/get.rb
ruby-brightpearl-0.1.0 lib/brightpearl/api_operations/get.rb