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