Class: ApiBanking::Callbacks
- Inherits:
-
Object
- Object
- ApiBanking::Callbacks
- Defined in:
- lib/api_banking/soap/callbacks.rb
Instance Method Summary collapse
- #before_send(&block) ⇒ Object
-
#initialize {|_self| ... } ⇒ Callbacks
constructor
A new instance of Callbacks.
- #on_complete(&block) ⇒ Object
Constructor Details
#initialize {|_self| ... } ⇒ Callbacks
Returns a new instance of Callbacks.
3 4 5 |
# File 'lib/api_banking/soap/callbacks.rb', line 3 def initialize yield(self) if block_given? end |
Instance Method Details
#before_send(&block) ⇒ Object
7 8 9 10 |
# File 'lib/api_banking/soap/callbacks.rb', line 7 def before_send(&block) @before_send = block if block_given? @before_send end |
#on_complete(&block) ⇒ Object
12 13 14 15 |
# File 'lib/api_banking/soap/callbacks.rb', line 12 def on_complete(&block) @on_complete = block if block_given? @on_complete end |