Module: Tourico
- Defined in:
- lib/tourico.rb,
lib/tourico/api.rb,
lib/tourico/version.rb,
lib/tourico/http_service.rb
Defined Under Namespace
Modules: HTTPService Classes: Api
Constant Summary collapse
- VERSION =
'0.0.8.2'
Class Attribute Summary collapse
-
.culture ⇒ Object
Returns the value of attribute culture.
-
.destination_service_link ⇒ Object
Returns the value of attribute destination_service_link.
-
.destination_service_version ⇒ Object
Returns the value of attribute destination_service_version.
-
.digest_auth ⇒ Object
Returns the value of attribute digest_auth.
-
.hotel_service_link ⇒ Object
Returns the value of attribute hotel_service_link.
-
.hotels_service_version ⇒ Object
Returns the value of attribute hotels_service_version.
-
.location_service_version ⇒ Object
Returns the value of attribute location_service_version.
-
.login_name ⇒ Object
Returns the value of attribute login_name.
-
.open_timeout ⇒ Object
Returns the value of attribute open_timeout.
-
.password ⇒ Object
Returns the value of attribute password.
-
.proxy_url ⇒ Object
Returns the value of attribute proxy_url.
-
.read_timeout ⇒ Object
Returns the value of attribute read_timeout.
-
.reservation_service_link ⇒ Object
Returns the value of attribute reservation_service_link.
-
.reservations_service_version ⇒ Object
Returns the value of attribute reservations_service_version.
-
.sandbox ⇒ Object
Returns the value of attribute sandbox.
-
.show_logs ⇒ Object
Returns the value of attribute show_logs.
Class Method Summary collapse
-
.setup {|_self| ... } ⇒ Object
initializer with all the configuration values.
Class Attribute Details
.culture ⇒ Object
Returns the value of attribute culture.
7 8 9 |
# File 'lib/tourico.rb', line 7 def culture @culture end |
.destination_service_link ⇒ Object
Returns the value of attribute destination_service_link.
7 8 9 |
# File 'lib/tourico.rb', line 7 def destination_service_link @destination_service_link end |
.destination_service_version ⇒ Object
Returns the value of attribute destination_service_version.
7 8 9 |
# File 'lib/tourico.rb', line 7 def destination_service_version @destination_service_version end |
.digest_auth ⇒ Object
Returns the value of attribute digest_auth.
7 8 9 |
# File 'lib/tourico.rb', line 7 def digest_auth @digest_auth end |
.hotel_service_link ⇒ Object
Returns the value of attribute hotel_service_link.
7 8 9 |
# File 'lib/tourico.rb', line 7 def hotel_service_link @hotel_service_link end |
.hotels_service_version ⇒ Object
Returns the value of attribute hotels_service_version.
7 8 9 |
# File 'lib/tourico.rb', line 7 def hotels_service_version @hotels_service_version end |
.location_service_version ⇒ Object
Returns the value of attribute location_service_version.
7 8 9 |
# File 'lib/tourico.rb', line 7 def location_service_version @location_service_version end |
.login_name ⇒ Object
Returns the value of attribute login_name.
7 8 9 |
# File 'lib/tourico.rb', line 7 def login_name @login_name end |
.open_timeout ⇒ Object
Returns the value of attribute open_timeout.
7 8 9 |
# File 'lib/tourico.rb', line 7 def open_timeout @open_timeout end |
.password ⇒ Object
Returns the value of attribute password.
7 8 9 |
# File 'lib/tourico.rb', line 7 def password @password end |
.proxy_url ⇒ Object
Returns the value of attribute proxy_url.
7 8 9 |
# File 'lib/tourico.rb', line 7 def proxy_url @proxy_url end |
.read_timeout ⇒ Object
Returns the value of attribute read_timeout.
7 8 9 |
# File 'lib/tourico.rb', line 7 def read_timeout @read_timeout end |
.reservation_service_link ⇒ Object
Returns the value of attribute reservation_service_link.
7 8 9 |
# File 'lib/tourico.rb', line 7 def reservation_service_link @reservation_service_link end |
.reservations_service_version ⇒ Object
Returns the value of attribute reservations_service_version.
7 8 9 |
# File 'lib/tourico.rb', line 7 def reservations_service_version @reservations_service_version end |
.sandbox ⇒ Object
Returns the value of attribute sandbox.
7 8 9 |
# File 'lib/tourico.rb', line 7 def sandbox @sandbox end |
.show_logs ⇒ Object
Returns the value of attribute show_logs.
7 8 9 |
# File 'lib/tourico.rb', line 7 def show_logs @show_logs end |
Class Method Details
.setup {|_self| ... } ⇒ Object
initializer with all the configuration values
10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/tourico.rb', line 10 def setup self.sandbox = true self.hotel_service_link = 'http://demo-hotelws.touricoholidays.com/HotelFlow.svc?wsdl' self.reservation_service_link = 'http://demo-wsnew.touricoholidays.com/reservationsservice.asmx?wsdl' self.destination_service_link = 'http://destservices.touricoholidays.com/DestinationsService.svc?wsdl' self.show_logs = false self.open_timeout = 2 self.read_timeout = 10 yield self # Savon.configure do|config| # config.log = false # end end |