Class: Contrek::Concurrent::EndPoint
- Inherits:
-
Object
- Object
- Contrek::Concurrent::EndPoint
- Defined in:
- lib/contrek/finder/concurrent/end_point.rb
Instance Attribute Summary collapse
-
#position ⇒ Object
readonly
Returns the value of attribute position.
-
#queues ⇒ Object
readonly
Returns the value of attribute queues.
Instance Method Summary collapse
-
#initialize(position) ⇒ EndPoint
constructor
A new instance of EndPoint.
- #inspect ⇒ Object
Constructor Details
#initialize(position) ⇒ EndPoint
Returns a new instance of EndPoint.
5 6 7 8 |
# File 'lib/contrek/finder/concurrent/end_point.rb', line 5 def initialize(position) @queues = [] @position = position end |
Instance Attribute Details
#position ⇒ Object (readonly)
Returns the value of attribute position.
4 5 6 |
# File 'lib/contrek/finder/concurrent/end_point.rb', line 4 def position @position end |
#queues ⇒ Object (readonly)
Returns the value of attribute queues.
4 5 6 |
# File 'lib/contrek/finder/concurrent/end_point.rb', line 4 def queues @queues end |
Instance Method Details
#inspect ⇒ Object
10 11 12 |
# File 'lib/contrek/finder/concurrent/end_point.rb', line 10 def inspect "EndPoint[#{@queues.size}]" end |