Sha256: a3376d146eed62647128045062434d246fc147889fce9dcbe7b9acd554306f76

Contents?: true

Size: 323 Bytes

Versions: 1

Compression:

Stored size: 323 Bytes

Contents

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

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

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

  def verb
    SupportedVerbs::OPTIONS
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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