Sha256: dae78504937c44390834734f34b97e647d44ed4dce6cdbba440bf4b5198a5370

Contents?: true

Size: 861 Bytes

Versions: 2

Compression:

Stored size: 861 Bytes

Contents

require 'tourico/version'
require 'tourico/api'
require 'tourico/http_service'

module Tourico
  class << self
    attr_accessor :login_name, :password, :culture, :hotels_service_version, :reservations_service_version, :location_service_version,:hotel_service_link,:reservation_service_link,:sandbox, :show_logs, :proxy_url, :digest_auth, :open_timeout, :read_timeout

    # initializer with all the configuration values
    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
      self.open_timeout = 2
      self.read_timeout = 10
      yield self

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

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tourico-0.0.8.1 lib/tourico.rb
tourico-0.0.8.0 lib/tourico.rb