Method: FIXSpec::Helpers#extract_message_type

Defined in:
lib/fix_spec/helpers.rb

#extract_message_type(msg) ⇒ Object



36
37
38
39
40
41
42
# File 'lib/fix_spec/helpers.rb', line 36

def extract_message_type msg
  if msg.is_set_field( quickfix::field::MsgType::FIELD)
    msg.get_field(quickfix::field::MsgType::FIELD).get_value
  else
    nil
  end
end