Sha256: 3281368503ef9a866392d800b4e09bd282d74d9344ea3153404bdb3e904c3a69

Contents?: true

Size: 444 Bytes

Versions: 2

Compression:

Stored size: 444 Bytes

Contents

module Session

  def create(ip_address, business_unit_id, options={})
    options.merge!({:basic_auth => @auth})
    response = self.class.get(base_api_endpoint("Web/Session/"), options)
    JSON.parse(response.body)
  end

  def shipping_methods(key, options={})
    options.merge!({:basic_auth => @auth})
    response = self.class.get(base_api_endpoint("Web/Session/Shippingmethods/#{key}"), options)
    JSON.parse(response.body)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tessitura_rest-0.1.1 lib/tessitura_rest/web/session.rb
tessitura_rest-0.1.0 lib/tessitura/web/session.rb