Method: TentClient::Post#get
- Defined in:
- lib/tent-client/post.rb
#get(entity, post_id, params = {}, &block) ⇒ Object
12 13 14 15 16 17 18 19 |
# File 'lib/tent-client/post.rb', line 12 def get(entity, post_id, params = {}, &block) new_block = proc do |request| request.headers['Accept'] = POST_MEDIA_TYPE yield(request) if block_given? end client.http.send(request_method || :get, :post, { :entity => entity, :post => post_id }.merge(params), &new_block) end |