Class: AdsCommon::SavonService
- Inherits:
-
Object
- Object
- AdsCommon::SavonService
- Defined in:
- lib/ads_common/savon_service.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#header_handler ⇒ Object
Returns the value of attribute header_handler.
-
#namespace ⇒ Object
readonly
Returns the value of attribute namespace.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(config, endpoint, namespace, version) ⇒ SavonService
constructor
Creates a new service.
Constructor Details
#initialize(config, endpoint, namespace, version) ⇒ SavonService
Creates a new service.
37 38 39 40 41 42 43 |
# File 'lib/ads_common/savon_service.rb', line 37 def initialize(config, endpoint, namespace, version) if self.class() == AdsCommon::SavonService raise NoMethodError, 'Tried to instantiate an abstract class' end @config, @version, @namespace = config, version, namespace @client = create_savon_client(endpoint, namespace) end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
32 33 34 |
# File 'lib/ads_common/savon_service.rb', line 32 def config @config end |
#header_handler ⇒ Object
Returns the value of attribute header_handler.
31 32 33 |
# File 'lib/ads_common/savon_service.rb', line 31 def header_handler @header_handler end |
#namespace ⇒ Object (readonly)
Returns the value of attribute namespace.
34 35 36 |
# File 'lib/ads_common/savon_service.rb', line 34 def namespace @namespace end |
#version ⇒ Object (readonly)
Returns the value of attribute version.
33 34 35 |
# File 'lib/ads_common/savon_service.rb', line 33 def version @version end |