Sha256: 4821f7967a265945582b6786bfa16f9f329c9368b439056d8cbf91e19ea409e6

Contents?: true

Size: 300 Bytes

Versions: 1

Compression:

Stored size: 300 Bytes

Contents

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

class ApiCopy < ApiMethod
  def call url, params={}, headers={}
    RestClient::Request.execute(method: :copy, url: url, headers: headers)
  end

  def verb
    SupportedVerbs::COPY
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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