Method: Peddler::Client#run
- Defined in:
- lib/peddler/client.rb
#run ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
175 176 177 178 179 180 181 182 183 |
# File 'lib/peddler/client.rb', line 175 def run opts = opts.store(:response_block, Proc.new) if block_given? res = post(opts) parser.new(res, encoding) rescue Excon::Errors::Error => e handle_error(e) end |