Class: ApiBanking::Callbacks

Inherits:
Object
  • Object
show all
Defined in:
lib/api_banking/soap/callbacks.rb

Instance Method Summary collapse

Constructor Details

#initialize {|_self| ... } ⇒ Callbacks

Returns a new instance of Callbacks.

Yields:

  • (_self)

Yield Parameters:



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