aboutsummaryrefslogtreecommitdiff
path: root/frame.rb
diff options
context:
space:
mode:
Diffstat (limited to 'frame.rb')
-rw-r--r--frame.rb13
1 files changed, 8 insertions, 5 deletions
diff --git a/frame.rb b/frame.rb
index a61c547..1fda655 100644
--- a/frame.rb
+++ b/frame.rb
@@ -1,10 +1,14 @@
class Frame
- def initialize(iface, desc)
+ def initialize(iface, id)
@iface = iface
- @description = desc
+ @id = id
end
- attr_accessor :iface, :description
+ attr_accessor :iface
+
+ def description
+ "Frame #{@id}"
+ end
def to(iface)
t = dup
@@ -13,7 +17,6 @@ class Frame
end
def ==(oth)
- @description == oth.description &&
- @iface == oth.iface
+ @iface == oth.iface && @id == oth.id
end
end