Sha256: b4d1b8e73977cceab7cb0a1a253c11288f0787b23e624ce88f61754aaaaa3f4c
Contents?: true
Size: 462 Bytes
Versions: 2
Compression:
Stored size: 462 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 url, params={}, headers={} headers[:params] = params RestClient.get(url, headers) { |real_response, request, result| real_response } end def verb SupportedVerbs::GET end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
api-tester-0.0.4 | lib/tester/definition/methods/api_get.rb |
api-tester-0.0.3 | lib/tester/definition/methods/api_get.rb |