Sha256: cb769065c73aefdeb1a19e7ec2cb19c4ecee0f32c3f259705a6beda8b55f33f1
Contents?: true
Size: 724 Bytes
Versions: 5
Compression:
Stored size: 724 Bytes
Contents
module GmanClient module Api # Orders API module Orders # Retrieve a single order # # @param [String] uuid identifies the order def order(uuid) response = attempt(@retry_attempts) do request .api .v1 .orders(uuid) .get end response.to_h end # Retrieves a number of orders # # @param [Hash] parameters to filter the orders def orders(filter_params) response = attempt(@retry_attempts) do request .api .v1 .orders .get(params: filter_params) end response.map(&:to_h) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems