Class: Contrek::Concurrent::Hub

Inherits:
Object
  • Object
show all
Defined in:
lib/contrek/finder/concurrent/hub.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#payloadsObject (readonly)

Returns the value of attribute payloads.



4
5
6
# File 'lib/contrek/finder/concurrent/hub.rb', line 4

def payloads
  @payloads
end

#widthObject (readonly)

Returns the value of attribute width.



4
5
6
# File 'lib/contrek/finder/concurrent/hub.rb', line 4

def width
  @width
end