Class: QuickTravel::PriceQuote

Inherits:
Adapter
  • Object
show all
Defined in:
lib/quick_travel/price_quote.rb

Class Method Summary collapse

Methods inherited from Adapter

all, belongs_to, create, find, has_many, #to_s, update

Methods included from InitFromHash

#define_readers, #initialize, #to_hash

Class Method Details

.calculate(params) ⇒ Object



7
8
9
10
# File 'lib/quick_travel/price_quote.rb', line 7

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