Module: Reuters::Wsdls::Base::ClassMethods

Included in:
Reuters::Wsdls::Base
Defined in:
lib/reuters/wsdls/base.rb

Overview

Class based methods that are set in every module that includes this base module.

Instance Method Summary collapse

Instance Method Details

#configure {|config| ... } ⇒ Object

Enables this WSDL to be configured by passing in itself as a block which enables static variables to be set.

Yields:

  • (config)

    The WSDL to be configured.



27
28
29
# File 'lib/reuters/wsdls/base.rb', line 27

def configure
  yield self
end

#endpointString

Returns the fully resolved WSDL endpoint for the including Module.

Returns:

  • (String)

    the fully resolved wsdl endpoint (including http://…)



18
19
20
# File 'lib/reuters/wsdls/base.rb', line 18

def endpoint
  "#{Reuters.wsdl_endpoint}/#{name}/wsdl/#{method}"
end