Class: Net::HTTP

Inherits:
Object
  • Object
show all
Defined in:
lib/nerdz/rebinds.rb

Instance Method Summary collapse

Instance Method Details

#__old_post__Object



76
# File 'lib/nerdz/rebinds.rb', line 76

alias __old_post__ post

#post(path, params = {}, data = {}, initheader = nil, dest = nil, &block) ⇒ Object



77
78
79
80
81
82
# File 'lib/nerdz/rebinds.rb', line 77

def post(path, params = {}, data = {}, initheader = nil, dest = nil, &block)
  path.merge_param!(params)
  data = data.to_param if data.is_a?(Hash)

  __old_post__(path, data, initheader, dest, &block)
end