Class: ResponseCallback::Success

Inherits:
Object
  • Object
show all
Includes:
ResponseCallbackInitializer
Defined in:
lib/response_callback.rb

Instance Method Summary collapse

Methods included from ResponseCallbackInitializer

#initialize

Instance Method Details

#on_failObject



17
18
19
# File 'lib/response_callback.rb', line 17

def on_fail
  return
end

#on_success {|@var| ... } ⇒ Object

Yields:

  • (@var)


13
14
15
# File 'lib/response_callback.rb', line 13

def on_success
  yield @var
end