class OnetableTerminator::Structures::Rule

Attributes

io[RW]
nic[RW]
number[RW]
raw_line[RW]
target[RW]
vm_id[RW]

Public Class Methods

new(line_hash) click to toggle source
# File lib/onetable_terminator/structures/rule.rb, line 6
def initialize(line_hash)
  @number = line_hash[:number]
  @raw_line = line_hash[:raw_line]
  @io = line_hash[:io]
  @target = line_hash[:target]
  @vm_id = line_hash[:vm_id]
end

Public Instance Methods

==(other) click to toggle source
# File lib/onetable_terminator/structures/rule.rb, line 14
def ==(other)
  number == other.number && raw_line == other.raw_line && io == other.io && target == other.target && vm_id == other.vm_id
end