module Reuters::Namespaces::Base::ClassMethods

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

Public Instance Methods

configure() { |self| ... } click to toggle source

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

@yield [config] The namespace to be configured.

# File lib/reuters/namespaces/base.rb, line 30
def configure
  yield self
end
endpoint() click to toggle source

Represents the fully resolved namespace endpoint for the Namespace module that has included this class method.

@note The returned string is prefixed with the configured

#namespaces_endpoint.

@return [String] the fully resolved namespace endpoint.

# File lib/reuters/namespaces/base.rb, line 21
def endpoint
  "#{Reuters.namespaces_endpoint}/#{year}/#{month}/#{day}/webservices/rkd/#{name}"
end