Class: Dtn::Messages::Symbol::Base
Overview
Class Method Summary
collapse
Instance Method Summary
collapse
parse, #termination?
#callback_name, callback_name, parse
Class Method Details
.fields ⇒ Object
9
10
11
12
13
14
15
16
17
18
|
# File 'lib/dtn/messages/symbol/base.rb', line 9
def fields
@fields ||= {
request_id: :to_i,
code_id => :to_i,
symbol: :to_s,
listed_market_id: :to_i,
security_type_id: :to_i,
description: :to_s
}.delete_if { |k, _| !k }.freeze
end
|
Instance Method Details
#listed_market ⇒ Object
25
26
27
|
# File 'lib/dtn/messages/symbol/base.rb', line 25
def listed_market
Dtn.listed_markets_catalog[listed_market_id]
end
|
#security_type ⇒ Object
29
30
31
|
# File 'lib/dtn/messages/symbol/base.rb', line 29
def security_type
Dtn.security_types_catalog[security_type_id]
end
|