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

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

Defined Under Namespace

Classes: Callback

Instance Method Summary collapse

Constructor Details

#initialize(url, params = {}) ⇒ DebugRequest

Returns a new instance of DebugRequest.



404
405
406
407
408
# File 'lib/ffwd/plugin/google_cloud/hook.rb', line 404

def initialize url, params={}
  @url = url
  @response = JSON.dump(params[:response] || {})
  @responses = Hash[(params[:responses] || {}).map{|k, v| [k, JSON.dump(v)]}]
end

Instance Method Details

#closeObject

do nothing



419
# File 'lib/ffwd/plugin/google_cloud/hook.rb', line 419

def close; end

#get(params = {}) ⇒ Object



414
415
416
# File 'lib/ffwd/plugin/google_cloud/hook.rb', line 414

def get params={}
  log_request :get, params
end

#post(params = {}) ⇒ Object



410
411
412
# File 'lib/ffwd/plugin/google_cloud/hook.rb', line 410

def post params={}
  log_request :post, params
end