Class: OnetableTerminator::Structures::Rule
- Inherits:
-
Object
- Object
- OnetableTerminator::Structures::Rule
- Defined in:
- lib/onetable_terminator/structures/rule.rb
Instance Attribute Summary collapse
-
#io ⇒ Object
Returns the value of attribute io.
-
#nic ⇒ Object
Returns the value of attribute nic.
-
#number ⇒ Object
Returns the value of attribute number.
-
#raw_line ⇒ Object
Returns the value of attribute raw_line.
-
#target ⇒ Object
Returns the value of attribute target.
-
#vm_id ⇒ Object
Returns the value of attribute vm_id.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(line_hash) ⇒ Rule
constructor
A new instance of Rule.
Constructor Details
#initialize(line_hash) ⇒ Rule
6 7 8 9 10 11 12 |
# 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 |
Instance Attribute Details
#io ⇒ Object
Returns the value of attribute io.
4 5 6 |
# File 'lib/onetable_terminator/structures/rule.rb', line 4 def io @io end |
#nic ⇒ Object
Returns the value of attribute nic.
4 5 6 |
# File 'lib/onetable_terminator/structures/rule.rb', line 4 def nic @nic end |
#number ⇒ Object
Returns the value of attribute number.
4 5 6 |
# File 'lib/onetable_terminator/structures/rule.rb', line 4 def number @number end |
#raw_line ⇒ Object
Returns the value of attribute raw_line.
4 5 6 |
# File 'lib/onetable_terminator/structures/rule.rb', line 4 def raw_line @raw_line end |
#target ⇒ Object
Returns the value of attribute target.
4 5 6 |
# File 'lib/onetable_terminator/structures/rule.rb', line 4 def target @target end |
#vm_id ⇒ Object
Returns the value of attribute vm_id.
4 5 6 |
# File 'lib/onetable_terminator/structures/rule.rb', line 4 def vm_id @vm_id end |
Instance Method Details
#==(other) ⇒ Object
14 15 16 |
# 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 |