lib/fix/protocol/messages/instrument.rb
#
# Returns an error if security_id and security_source_id are not in the same filled/empty state
#
Returns an error if security_id and security_source_id are not in the same filled/empty state
Returns an error if security_id and security_source_id are not in the same filled / empty state
def errors
          e = []
          if !!security_id ^ !!security_id_source
            e << "Security ID, and security source must either be both blank, or both must be provided"
          end
          [super, e].flatten
        end
def errors e = [ ] if ! ! security_id ^ ! ! security_id_source e << "Security ID, and security source must either be both blank, or both must be provided" end [ super , e ] . flatten end
Returns an error if security_id and security_source_id are not in the same filled/empty state
Returns an error if security_id and security_source_id are not in the same filled / empty state