Module: Reuters::Namespaces::Search
- Includes:
- Base
- Defined in:
- lib/reuters/namespaces/search.rb,
lib/reuters/namespaces/search/all.rb,
lib/reuters/namespaces/search/equity.rb
Overview
Represents the base search namespaces. Note that because search is quite a broad namespace inside the Reuters api, it is better to use a more specific namespace such as Equity.
Defined Under Namespace
Class Method Summary collapse
-
.define(*strs) ⇒ String
Define a custom name or endpoint that Reuters uses to define XML Namespaces inside the request body.
Methods included from Base
Methods included from Base::ClassMethods
Class Method Details
.define(*strs) ⇒ String
Define a custom name or endpoint that Reuters uses to define XML Namespaces inside the request body.
42 43 44 45 |
# File 'lib/reuters/namespaces/search.rb', line 42 def self.define(*strs) str = strs.map { |s| s.to_s.camelize }.join('_') "#{endpoint}/#{str}" end |