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.7.5'

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.cultureObject

Returns the value of attribute culture.



7
8
9
# File 'lib/tourico.rb', line 7

def culture
  @culture
end

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_versionObject

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_versionObject

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_nameObject

Returns the value of attribute login_name.



7
8
9
# File 'lib/tourico.rb', line 7

def 
  @login_name
end

.passwordObject

Returns the value of attribute password.



7
8
9
# File 'lib/tourico.rb', line 7

def password
  @password
end

.proxy_urlObject

Returns the value of attribute proxy_url.



7
8
9
# File 'lib/tourico.rb', line 7

def proxy_url
  @proxy_url
end

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_versionObject

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

.sandboxObject

Returns the value of attribute sandbox.



7
8
9
# File 'lib/tourico.rb', line 7

def sandbox
  @sandbox
end

.show_logsObject

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

Yields:

  • (_self)

Yield Parameters:

  • _self (Tourico)

    the object that the method was called on



10
11
12
13
14
15
16
17
18
19
20
# 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.show_logs = false
  yield self

  # Savon.configure do|config|
  #   config.log = false
  # end
end