Sha256: 4a99a773f8247ac652c6dbab2e2f8c005e7f0e1ff353b04b205252699918d6a0

Contents?: true

Size: 258 Bytes

Versions: 34

Compression:

Stored size: 258 Bytes

Contents

require 'quick_travel/adapter'

module QuickTravel
  class PriceQuote < Adapter
    self.api_base = '/api/price_quotes'

    def self.calculate(params)
      response = post_and_validate("#{api_base}/calculate", params)
      new(response)
    end
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
quicktravel_client-4.7.0 lib/quick_travel/price_quote.rb
quicktravel_client-4.6.0 lib/quick_travel/price_quote.rb
quicktravel_client-4.5.0 lib/quick_travel/price_quote.rb
quicktravel_client-4.4.0 lib/quick_travel/price_quote.rb
quicktravel_client-4.3.2 lib/quick_travel/price_quote.rb
quicktravel_client-4.3.1 lib/quick_travel/price_quote.rb
quicktravel_client-4.3.0 lib/quick_travel/price_quote.rb
quicktravel_client-4.2.0 lib/quick_travel/price_quote.rb
quicktravel_client-4.1.0 lib/quick_travel/price_quote.rb
quicktravel_client-4.0.0 lib/quick_travel/price_quote.rb
quicktravel_client-3.9.0 lib/quick_travel/price_quote.rb
quicktravel_client-3.8.1 lib/quick_travel/price_quote.rb
quicktravel_client-3.8.0 lib/quick_travel/price_quote.rb
quicktravel_client-3.7.0 lib/quick_travel/price_quote.rb
quicktravel_client-3.6.1 lib/quick_travel/price_quote.rb
quicktravel_client-3.6.0 lib/quick_travel/price_quote.rb
quicktravel_client-3.5.0 lib/quick_travel/price_quote.rb
quicktravel_client-3.4.0 lib/quick_travel/price_quote.rb
quicktravel_client-3.3.0 lib/quick_travel/price_quote.rb
quicktravel_client-3.2.0 lib/quick_travel/price_quote.rb