class Threatinator::Record

Attributes

data[R]
line_number[R]
pos_end[R]
pos_start[R]

Public Class Methods

new(data, opts = {}) click to toggle source
# File lib/threatinator/record.rb, line 4
def initialize(data, opts = {})
  @data = data
  @line_number = opts[:line_number]
  @pos_start = opts[:pos_start]
  @pos_end = opts[:pos_end]
end

Public Instance Methods

==(other) click to toggle source
# File lib/threatinator/record.rb, line 11
def ==(other)
  @data == other.data &&
    @line_number == other.line_number &&
    @pos_start == other.pos_start &&
    @pos_end == other.pos_end
end
eql?(other) click to toggle source
# File lib/threatinator/record.rb, line 18
def eql?(other)
  other.kind_of?(self.class) && self == other
end