Class: RestClient::Resource
- Inherits:
-
Object
- Object
- RestClient::Resource
- Defined in:
- ext/restclient-ext.rb
Overview
:nodoc:
Instance Method Summary collapse
Instance Method Details
#get(additional_headers = {}, &block) ⇒ Object
:nodoc:
31 32 33 34 35 36 37 38 39 |
# File 'ext/restclient-ext.rb', line 31 def get(additional_headers={}, &block) payload = additional_headers.delete(:payload) headers = ([:headers] || {}).merge(additional_headers) Request.execute(.merge( :method => :get, :url => url, :payload => payload, :headers => headers), &(block || @block)) end |