Method: Motion::ComponentConnection#initialize
- Defined in:
- lib/motion/component_connection.rb
#initialize(component, log_helper: LogHelper.for_component(component)) ⇒ ComponentConnection
Returns a new instance of ComponentConnection.
20 21 22 23 24 25 26 27 28 29 |
# File 'lib/motion/component_connection.rb', line 20 def initialize(component, log_helper: LogHelper.for_component(component)) @component = component @log_helper = log_helper timing("Connected") do @render_hash = component.render_hash component.process_connect end end |