Class: ServicesAutomation::SearchInsurance

Inherits:
Search
  • Object
show all
Defined in:
lib/services/search_insurance.rb

Overview

search params /lang/country/destination/fromDate/toDate/ distribution/flowOrigin/flightPrice/filters/sortBy/pagination/currencies

Constant Summary collapse

SERVICE_PATH =
'/service/search/insurance' \
+ '/:language' \
+ '/:country' \
+ '/:destination' \
+ '/:fromDate' \
+ '/:toDate' \
+ '/:distribution' \
+ '/:flowOrigin' \
+ '/:flightPrice' \
+ '/:filters' \
+ '/:sortBy' \
+ '/:pagination' \
+ '/:currencies'

Constants inherited from DSSM

DSSM::SERVICE_METHOD, DSSM::SERVICE_SERVER

Instance Method Summary collapse

Methods inherited from Search

#get_all_services, #get_hash, #get_name, #get_price_by_currency, #get_prices, #get_provider, #get_random_service_id, #get_service, #get_service_by_id, #get_service_id, #get_service_type, #get_total_price, #initialize, #set_search_hash_to_config, #set_service_id_to_config, #set_total_price_to_config

Methods inherited from DSSM

#do_call, #status

Constructor Details

This class inherits a constructor from ServicesAutomation::Search

Instance Method Details

#get_search_pathObject



23
24
25
# File 'lib/services/search_insurance.rb', line 23

def get_search_path
  SERVICE_PATH
end

#set_flight_price_to_paramsObject



27
28
29
30
# File 'lib/services/search_insurance.rb', line 27

def set_flight_price_to_params

  CONFIG[:params][:flightPrice] = ENVIRONMENT[:flightPrice]
end