Class: CableReady::CableCar
- Inherits:
-
OperationBuilder
- Object
- OperationBuilder
- CableReady::CableCar
- 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
- #dispatch(clear: true) ⇒ Object
-
#initialize ⇒ CableCar
constructor
A new instance of CableCar.
Methods inherited from OperationBuilder
#add_operation_method, #apply!, finalizer_for, #operations_payload, #reset!, #to_json
Methods included from Identifiable
Constructor Details
#initialize ⇒ CableCar
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 |