Class: Fix::Protocol::Messages::Instrument

Inherits:
Fix::Protocol::MessagePart show all
Defined in:
lib/fix/protocol/messages/instrument.rb

Overview

Instance Attribute Summary

Attributes inherited from Fix::Protocol::MessagePart

#delegations, #name, #parse_failure

Instance Method Summary collapse

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

Parameters:

  • str (String)

    The string for which we want to parse the beginning

Returns:

  • (Boolean)

    Whether the beginning of the string can be parsed for this field



18
19
20
# File 'lib/fix/protocol/messages/instrument.rb', line 18

def can_parse?(str)
  str =~ /55\=[^\x01]+\x01/
end