Class: FFWD::Plugin::GoogleCloud::DebugRequest::Callback
- Inherits:
-
Object
- Object
- FFWD::Plugin::GoogleCloud::DebugRequest::Callback
- Defined in:
- lib/ffwd/plugin/google_cloud/hook.rb
Defined Under Namespace
Classes: ResponseHeader
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
- #callback(&block) ⇒ Object
- #errback(&block) ⇒ Object
-
#initialize(response) ⇒ Callback
constructor
A new instance of Callback.
- #response_header ⇒ Object
Constructor Details
#initialize(response) ⇒ Callback
Returns a new instance of Callback.
389 390 391 |
# File 'lib/ffwd/plugin/google_cloud/hook.rb', line 389 def initialize response @response = response end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
387 388 389 |
# File 'lib/ffwd/plugin/google_cloud/hook.rb', line 387 def response @response end |
Instance Method Details
#callback(&block) ⇒ Object
393 394 395 |
# File 'lib/ffwd/plugin/google_cloud/hook.rb', line 393 def callback &block block.call end |
#errback(&block) ⇒ Object
401 |
# File 'lib/ffwd/plugin/google_cloud/hook.rb', line 401 def errback █ end |
#response_header ⇒ Object
397 398 399 |
# File 'lib/ffwd/plugin/google_cloud/hook.rb', line 397 def response_header ResponseHeader.new 200 end |