aboutsummaryrefslogtreecommitdiff
path: root/frame.rb
blob: 1fda65562011341497c4622a20710fd18851a132 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
class Frame
  def initialize(iface, id)
    @iface = iface
    @id = id
  end

  attr_accessor :iface

  def description
    "Frame #{@id}"
  end

  def to(iface)
    t = dup
    t.iface = iface
    t
  end

  def ==(oth)
    @iface == oth.iface && @id == oth.id
  end
end