Class: Fix::Protocol::Messages::Logon

Inherits:
Fix::Protocol::Message show all
Defined in:
lib/fix/protocol/messages/logon.rb

Overview

A FIX logon message

Instance Attribute Summary

Attributes inherited from Fix::Protocol::MessagePart

#delegations, #name, #parse_failure

Instance Method Summary collapse

Methods inherited from Fix::Protocol::Message

#dump, #initialize, #valid?

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

#errorsArray

Returns the logon-specific errors

Returns:

  • (Array)

     The error messages


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