Class: HTTParty::Parser
- Inherits:
-
Object
- Object
- HTTParty::Parser
- Defined in:
- lib/playtypus/http_sender.rb
Class Method Summary collapse
Class Method Details
.call(body, format) ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'lib/playtypus/http_sender.rb', line 7 def self.call(body, format) begin new(body, format).parse rescue JSON::ParserError format = :plain retry end end |