Sha256: 553e31023e3cb425a88c2d981f77f61d409ebdeb60958b6b1b4adaf46c2769c2
Contents?: true
Size: 1.13 KB
Versions: 4
Compression:
Stored size: 1.13 KB
Contents
module Savon # Raised by the <tt>on_http_error</tt> method in case of an HTTP error. # <tt>on_http_error</tt> may be overwritten to customize error handling. class HTTPError < StandardError; end # Raised by the <tt>on_soap_fault</tt> method in case of a SOAP fault. # <tt>on_soap_fault</tt> may be overwritten to customize error handling. class SOAPFault < StandardError; end # The logger to use. @@logger = nil # The log level to use. @@log_level = :debug # Sets the logger to use. def self.logger=(logger) @@logger = logger end # Sets the log level to use. def self.log_level=(log_level) @@log_level = log_level end # Logs a given +message+ using the +@@logger+ instance or yields the logger # to a given +block+ for logging multiple messages at once. def self.log(message = nil) if @@logger @@logger.send(@@log_level, message) if message yield @@logger if block_given? end end end %w(net/http net/https uri rubygems hpricot apricoteatsgorilla).each do |gem| require gem end %w(service wsdl).each do |file| require File.join(File.dirname(__FILE__), "savon", file) end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
savon-0.3.2 | lib/savon.rb |
savon-0.3.1 | lib/savon.rb |
savon-0.3.0 | lib/savon.rb |
savon-0.2.12 | lib/savon.rb |