Sha256: 1467ea2b3868fc687014305a5221305d5bd1f11b33e8f46bed97e8620c436281

Contents?: true

Size: 588 Bytes

Versions: 3

Compression:

Stored size: 588 Bytes

Contents

module Reshape
  class Client
    module Price
      
      def price(volume, area, x_bound_min, x_bound_max, y_bound_min, y_bound_max, z_bound_min, z_bound_max, options={}, raw=false)
        options.merge!(
          {
            volume: volume,
            area: area,
            xBoundMin: x_bound_min, 
            xBoundMax: x_bound_max,
            yBoundMin: y_bound_min,
            yBoundMax: y_bound_max,
            zBoundMin: z_bound_min,
            zBoundMax: z_bound_max
          })
        post("/price/#{api_version}", options, raw)
      end
      
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
reshape-0.2 lib/reshape/client/price.rb
reshape-0.1.1 lib/reshape/client/price.rb
reshape-0.1 lib/reshape/client/price.rb