Class: CableReady::CableCar

Inherits:
OperationBuilder show all
Extended by:
Thread::Local
Defined in:
lib/cable_ready/cable_car.rb

Instance Attribute Summary

Attributes inherited from OperationBuilder

#identifier, #previous_selector, #previous_xpath

Instance Method Summary collapse

Methods inherited from OperationBuilder

#add_operation_method, #apply!, finalizer_for, #operations_payload, #reset!, #to_json

Methods included from Identifiable

#dom_id, #identifiable?

Constructor Details

#initializeCableCar

Returns a new instance of CableCar.



9
10
11
# File 'lib/cable_ready/cable_car.rb', line 9

def initialize
  super "CableCar"
end

Instance Method Details

#dispatch(clear: true) ⇒ Object



13
14
15
16
17
# File 'lib/cable_ready/cable_car.rb', line 13

def dispatch(clear: true)
  payload = operations_payload
  reset! if clear
  payload
end