Class: RestClient::Resource
- Inherits:
-
Object
- Object
- RestClient::Resource
- Defined in:
- lib/restclient_ext/resource.rb
Instance Method Summary collapse
Instance Method Details
#get_options(additional_headers = {}, &block) ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'lib/restclient_ext/resource.rb', line 3 def (additional_headers = {}, &block) headers = ([:headers] || {}).merge(additional_headers) Request.execute(.merge( method: :options, url: url, headers: headers ), &block || @block) end |