Class: Fix::Protocol::Messages::Logon
- Inherits:
-
Fix::Protocol::Message
- Object
- Fix::Protocol::MessagePart
- Fix::Protocol::Message
- Fix::Protocol::Messages::Logon
- Defined in:
- lib/fix/protocol/messages/logon.rb
Overview
A FIX logon message
Constant Summary
Constants inherited from Fix::Protocol::Message
Fix::Protocol::Message::DEFAULT_VERSION
Instance Attribute Summary
Attributes inherited from Fix::Protocol::MessagePart
#delegations, #name, #parse_failure
Instance Method Summary collapse
-
#errors ⇒ Array
Returns the logon-specific errors.
Methods inherited from Fix::Protocol::Message
#dump, #initialize, #valid?, version=
Methods inherited from Fix::Protocol::MessagePart
collection, #dump, 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::Message
Instance Method Details
#errors ⇒ Array
Returns the logon-specific errors
22 23 24 25 26 27 |
# File 'lib/fix/protocol/messages/logon.rb', line 22 def errors e = [] e << "Encryption is not supported, the transport level should handle it" unless (encrypt_method == 0) e << "Heartbeat interval should be between 10 and 60 seconds" unless heart_bt_int && heart_bt_int <= 60 && heart_bt_int >= 10 [super, e].flatten end |