aboutsummaryrefslogtreecommitdiff
path: root/frame.rb
blob: b2ced43271b604073850791bea4ca058646ed41b (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, :id

  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