Sha256: 37fcaa7c9cc0065b8993c0a2d1be74881ce326f0da1831517f7d608f89012495

Contents?: true

Size: 371 Bytes

Versions: 4

Compression:

Stored size: 371 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: url,
                        headers: headers
                      ), &block || @block)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
haveapi-client-0.25.0 lib/restclient_ext/resource.rb
haveapi-client-0.24.0 lib/restclient_ext/resource.rb
haveapi-client-0.23.7 lib/restclient_ext/resource.rb
haveapi-client-0.23.6 lib/restclient_ext/resource.rb