Class: Dtn::Lookups::Symbol::BySic

Inherits:
Base show all
Defined in:
lib/dtn/lookups/symbol/by_sic.rb

Overview

Symbol lookup by SIC

Constant Summary collapse

TEMPLATE =
"SBS,%<search_line>s,%<id>d"

Constants inherited from Request

Request::END_OF_MESSAGE_CHARACTERS, Request::NO_DATA_CHARACTERS, Request::PORT, Request::SYNTAX_ERROR_CHARACTERS

Instance Attribute Summary

Attributes inherited from Request

#combined_options

Instance Method Summary collapse

Methods inherited from Request

call

Methods included from Concerns::Id

#id

Instance Method Details

#call(search_line:, **options) ⇒ Object

Return symbols in a specific SIC sector.

Example messages

SBS,[Search String],[RequestID]<CR><LF>


15
16
17
18
19
20
21
22
# File 'lib/dtn/lookups/symbol/by_sic.rb', line 15

def call(search_line:, **options)
  self.combined_options = defaults(**options).merge(
    {
      search_line: search_line
    }
  )
  super
end