Class: Dtn::Lookups::Symbol::ByNaic

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

Overview

Symbol lookup by NAIC

Constant Summary collapse

TEMPLATE =
"SBN,%<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 NAIC sector.

Example messages

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


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

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