module Typhoeus::Request::Callbacks::Types
def on_complete(&block)
-
(Array
- All on_complete blocks.)
Other tags:
- Yield: -
Parameters:
-
block
(Block
) -- The block to execute.
Other tags:
- Example: Set on_complete. -
def on_complete(&block) @on_complete ||= [] @on_complete << block if block_given? @on_complete end
def on_failure(&block)
-
(Array
- All on_failure blocks.)
Other tags:
- Yield: -
Parameters:
-
block
(Block
) -- The block to execute.
Other tags:
- Example: Set on_failure. -
def on_failure(&block) @on_failure ||= [] @on_failure << block if block_given? @on_failure end
def on_success(&block)
-
(Array
- All on_success blocks.)
Other tags:
- Yield: -
Parameters:
-
block
(Block
) -- The block to execute.
Other tags:
- Example: Set on_success. -
def on_success(&block) @on_success ||= [] @on_success << block if block_given? @on_success end