Class: FFWD::Plugin::GoogleCloud::DebugRequest::Callback

Inherits:
Object
  • Object
show all
Defined in:
lib/ffwd/plugin/google_cloud/hook.rb

Defined Under Namespace

Classes: ResponseHeader

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#responseObject (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_headerObject



397
398
399
# File 'lib/ffwd/plugin/google_cloud/hook.rb', line 397

def response_header
  ResponseHeader.new 200
end