Sha256: d73f30d05095c74c5f91f39449a4da5c0672f4dd29ceb9c23d43020a193d8e5a

Contents?: true

Size: 404 Bytes

Versions: 1

Compression:

Stored size: 404 Bytes

Contents

require 'rest-client'
require 'tester/definition/methods/api_method'

class ApiPut < ApiMethod
  def put url, json_payload, headers
    RestClient.put(url, json_payload, headers)  { |real_response, request, result|
      real_response
    }
  end

  def call url, body_params={}, request_params={}
    self.put url, body_params.to_json, request_params
  end

  def verb
    SupportedVerbs::PUT
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
api-tester-0.0.5 lib/tester/definition/methods/api_put.rb