Class: ServicesAutomation::RetrieveTour
- Defined in:
- lib/services/retrieve_tour.rb
Overview
search params searchHash/serviceType
Constant Summary collapse
- SERVICE_PATH =
'/service/search/tour/retrieve' \ + '/:searchHash' \ + '/:serviceId'
Constants inherited from DSSM
DSSM::SERVICE_METHOD, DSSM::SERVICE_SERVER
Instance Method Summary collapse
Methods inherited from Retrieve
#get_additionals, #get_adult_max_age, #get_cancellation_policies, #get_child_max_age, #get_destination_iata, #get_distribution, #get_dto, #get_from_date, #get_highlights, #get_home_iata, #get_infant_max_age, #get_language, #get_particular_conditions, #get_payment_plans, #get_price_by_currency, #get_prices, #get_product_type, #get_provider, #get_service_description, #get_service_id, #get_service_name, #get_service_type, #get_to_date, #get_total_price, #initialize, #set_total_price_to_config
Methods inherited from DSSM
#do_call, #get_search_path, #status
Constructor Details
This class inherits a constructor from ServicesAutomation::Retrieve
Instance Method Details
#get_service_path ⇒ Object
14 15 16 |
# File 'lib/services/retrieve_tour.rb', line 14 def get_service_path SERVICE_PATH end |
#run_search(server) ⇒ Object
18 19 20 21 22 23 24 25 26 |
# File 'lib/services/retrieve_tour.rb', line 18 def run_search(server) search = ServicesAutomation::SearchTour.new(server) search.set_params(CONFIG[:params]) search.run CONFIG[:params][:serviceId] = search.get_service_id search.set_search_hash_to_config search.set_total_price_to_config(CONFIG[:params][:serviceId]) end |