Sha256: f2b828f7b6c350848bd2db19bb423cde0535703c3c6c88c783635a7ceb571e71

Contents?: true

Size: 359 Bytes

Versions: 10

Compression:

Stored size: 359 Bytes

Contents

module RestClient
  class Resource
    def get_options(additional_headers = {}, &block)
      headers = (options[:headers] || {}).merge(additional_headers)
      Request.execute(options.merge(
                        method: :options,
                        url:,
                        headers:
                      ), &block || @block)
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
haveapi-client-0.23.5 lib/restclient_ext/resource.rb
haveapi-client-0.23.4 lib/restclient_ext/resource.rb
haveapi-client-0.23.3 lib/restclient_ext/resource.rb
haveapi-client-0.23.2 lib/restclient_ext/resource.rb
haveapi-client-0.23.1 lib/restclient_ext/resource.rb
haveapi-client-0.23.0 lib/restclient_ext/resource.rb
haveapi-client-0.22.1 lib/restclient_ext/resource.rb
haveapi-client-0.22.0 lib/restclient_ext/resource.rb
haveapi-client-0.21.1 lib/restclient_ext/resource.rb
haveapi-client-0.21.0 lib/restclient_ext/resource.rb