Class: Reuters::Client::Search::All

Inherits:
Equity show all
Defined in:
lib/reuters/client/search/all.rb

Overview

Note:

All Equity Search XML Requests require that the appropriate xmlns attribute is present on elements inside the request element. This class uses the before_request hook to inject the appropriate attribute.

Performs a “Search All” Reuters API request. This particular requests allows you to search for all types of listings, such as Equities, Derivatives and Funds.

Instance Method Summary collapse

Methods inherited from Equity

#initialize

Methods inherited from Base

#initialize

Methods inherited from Base

#after_request, #before_request, #client, #initialize, #method_missing, #request

Constructor Details

This class inherits a constructor from Reuters::Client::Search::Equity

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Reuters::Client::Base

Instance Method Details

#data_typeString

Retrieve the correctly formatted Namespace Data Type for an Equity-based Search Reuters Request.

Returns:

  • (String)

    the fully resolved namespace endpoint.



18
19
20
# File 'lib/reuters/client/search/all.rb', line 18

def data_type
  ns_definition(:query_spec_datatypes)
end

#query_specString

Retrieve the correctly formatted Namespace Query Specification for an Equity-based Search.

Returns:

  • (String)

    the fully resolved namespace endpoint.



26
27
28
# File 'lib/reuters/client/search/all.rb', line 26

def query_spec
  ns_definition(:searchall, :query_spec, 1)
end