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:, start_x:, end_x:) ⇒ Hub

Returns a new instance of Hub.



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

def initialize(height:, start_x:, end_x:)
  # @payloads = Array.new(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