Class: Contrek::Concurrent::Hub
- Inherits:
-
Object
- Object
- Contrek::Concurrent::Hub
- Defined in:
- lib/contrek/finder/concurrent/hub.rb
Instance Attribute Summary collapse
-
#payloads ⇒ Object
readonly
Returns the value of attribute payloads.
-
#width ⇒ Object
readonly
Returns the value of attribute width.
Instance Method Summary collapse
-
#initialize(height:, width:) ⇒ Hub
constructor
A new instance of Hub.
Constructor Details
#initialize(height:, width:) ⇒ Hub
Returns a new instance of Hub.
5 6 7 8 9 |
# File 'lib/contrek/finder/concurrent/hub.rb', line 5 def initialize(height:, width:) @width = width # @payloads = Array.new(width * height) @payloads = {} end |
Instance Attribute Details
#payloads ⇒ Object (readonly)
Returns the value of attribute payloads.
4 5 6 |
# File 'lib/contrek/finder/concurrent/hub.rb', line 4 def payloads @payloads end |
#width ⇒ Object (readonly)
Returns the value of attribute width.
4 5 6 |
# File 'lib/contrek/finder/concurrent/hub.rb', line 4 def width @width end |