Class: StreamID
- Inherits:
-
Object
- Object
- StreamID
- Defined in:
- lib/ObjectModel/Repository/StreamID.rb
Instance Attribute Summary collapse
-
#sid ⇒ Object
readonly
Returns the value of attribute sid.
Instance Method Summary collapse
- #==(other) ⇒ Object
- #eql?(other) ⇒ Boolean
- #hash ⇒ Object
-
#initialize(id = nil) ⇒ StreamID
constructor
A new instance of StreamID.
Constructor Details
#initialize(id = nil) ⇒ StreamID
Returns a new instance of StreamID.
3 4 5 |
# File 'lib/ObjectModel/Repository/StreamID.rb', line 3 def initialize id = nil @sid = id end |
Instance Attribute Details
#sid ⇒ Object (readonly)
Returns the value of attribute sid.
2 3 4 |
# File 'lib/ObjectModel/Repository/StreamID.rb', line 2 def sid @sid end |
Instance Method Details
#==(other) ⇒ Object
7 8 9 10 |
# File 'lib/ObjectModel/Repository/StreamID.rb', line 7 def == other return false unless other.respond_to? :sid @sid == other.sid end |
#eql?(other) ⇒ Boolean
12 13 14 15 |
# File 'lib/ObjectModel/Repository/StreamID.rb', line 12 def eql? other return false unless self.class == other.class @sid == other.sid end |
#hash ⇒ Object
17 18 19 |
# File 'lib/ObjectModel/Repository/StreamID.rb', line 17 def hash return @sid.hash end |