Sha256: f17706bb0575e696a1ce20f1b20733bb4779e672d37b9d683118bc313bf7c8d1

Contents?: true

Size: 461 Bytes

Versions: 1

Compression:

Stored size: 461 Bytes

Contents

require 'tester/definition/request'
require 'tester/definition/response'
require "tester/version"
require 'tester/util/supported_verbs'
require 'rest-client'
require 'json'
require 'tester/definition/methods/api_method'

class ApiGet < ApiMethod
  def call params={}, headers={}
    headers[:params] = params

    RestClient.get(self.url, headers)  { |real_response, request, result|
      real_response
    }
  end

  def verb
    SupportedVerbs::GET
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
api-tester-0.0.1 lib/tester/definition/methods/api_get.rb