README.textile in expedia-0.0.4 vs README.textile in expedia-0.0.5

- old
+ new

@@ -35,10 +35,13 @@ Expedia.api_key = 'your_api_key' Expedia.shared_secret = 'your_shared_secret' Expedia.locale = 'en_US' Expedia.currency_code = 'USD' Expedia.minor_rev = 13 +# Optional configuration... +Expedia.timeout = 1 # read timeout in sec +Expedia.open_timeout = 1 # connection timeout in sec </pre> Or you can execute the following command to create an intializer (if you are using rails) <pre> @@ -52,11 +55,11 @@ <pre> # Instentiate api object api = Expedia::Api.new # Method to search for a hotel. see http://developer.ean.com/docs/hotel-list/ -response = api.get_list({:propertyName => 'Hotel Moa Berlin', :destinationString => 'berlin'}) +response = api.get_list({:propertyName => 'Hotel Moa', :destinationString => 'berlin'}) # execute this method to know if there is any exception response.exception? # false if success </pre> @@ -123,16 +126,19 @@ :stateProvinceCode => 'WA', :countryCode => 'US', :postalCode => 98004 }) </pre> h3. Logging -Expedia::Utils.logger points to STDOUT by default. You can use it to Log in Rails Applications +Expedia::Utils.logger points to STDOUT by default. You can use it to Log in Rails applications. <pre> Expedia::Utils.logger = Rails.logger # And loggig methods available [:debug, :info, :warn, :error, :fatal] + +# Default logger level is Logger::ERROR. You can change it by setting +Expedia.logger.level = Logger::DEBUG # Or whatever level you want... </pre> h3. Contributing