Class: Fix::Protocol::Messages::Instrument
- Inherits:
-
Fix::Protocol::MessagePart
- Object
- Fix::Protocol::MessagePart
- Fix::Protocol::Messages::Instrument
- Defined in:
- lib/fix/protocol/messages/instrument.rb
Overview
An Instrument component, see www.onixs.biz/fix-dictionary/4.4/compBlock_Instrument.html
Instance Attribute Summary
Attributes inherited from Fix::Protocol::MessagePart
#delegations, #name, #parse_failure
Instance Method Summary collapse
-
#can_parse?(str) ⇒ Boolean
Checks whether the start of the given string can be parsed as this particular field.
Methods inherited from Fix::Protocol::MessagePart
collection, #dump, #errors, field, inherited, #initialize, #initialize_node, #node_for_name, #nodes, parent_delegate, parse, #parse, part, structure, unordered
Constructor Details
This class inherits a constructor from Fix::Protocol::MessagePart
Instance Method Details
#can_parse?(str) ⇒ Boolean
Checks whether the start of the given string can be parsed as this particular field
18 19 20 |
# File 'lib/fix/protocol/messages/instrument.rb', line 18 def can_parse?(str) str =~ /55\=[^\x01]+\x01/ end |