Class: Savon::Config

Inherits:
Struct
  • Object
show all
Defined in:
lib/savon/config.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#env_namespaceObject

Returns the value of attribute env_namespace

Returns:

  • (Object)

    the current value of env_namespace



6
7
8
# File 'lib/savon/config.rb', line 6

def env_namespace
  @env_namespace
end

#loggerObject

Returns the value of attribute logger

Returns:

  • (Object)

    the current value of logger



6
7
8
# File 'lib/savon/config.rb', line 6

def logger
  @logger
end

#pretty_print_xmlObject

Returns the value of attribute pretty_print_xml

Returns:

  • (Object)

    the current value of pretty_print_xml



6
7
8
# File 'lib/savon/config.rb', line 6

def pretty_print_xml
  @pretty_print_xml
end

#raise_errorsObject

Returns the value of attribute raise_errors

Returns:

  • (Object)

    the current value of raise_errors



6
7
8
# File 'lib/savon/config.rb', line 6

def raise_errors
  @raise_errors
end

#soap_headerObject

Returns the value of attribute soap_header

Returns:

  • (Object)

    the current value of soap_header



6
7
8
# File 'lib/savon/config.rb', line 6

def soap_header
  @soap_header
end

#soap_versionObject

Returns the value of attribute soap_version

Returns:

  • (Object)

    the current value of soap_version



6
7
8
# File 'lib/savon/config.rb', line 6

def soap_version
  @soap_version
end

Class Method Details

.defaultObject



8
9
10
11
12
13
14
# File 'lib/savon/config.rb', line 8

def self.default
  config = new
  config.logger = Logger.new
  config.raise_errors = true
  config.soap_version = SOAP::DefaultVersion
  config
end

Instance Method Details

#cloneObject



20
21
22
23
24
# File 'lib/savon/config.rb', line 20

def clone
  config = super
  config.logger = config.logger.clone
  config
end

#hooksObject



16
17
18
# File 'lib/savon/config.rb', line 16

def hooks
  @hooks ||= Hooks::Group.new
end