Class: Pinecone::ResponseParser
- Inherits:
-
HTTParty::Parser
- Object
- HTTParty::Parser
- Pinecone::ResponseParser
- Defined in:
- lib/pinecone/response_parser.rb
Constant Summary collapse
- SupportedFormats =
standard:disable Naming/ConstantName
{ "application/json" => :json, "text/plain" => :json }
Instance Method Summary collapse
-
#json ⇒ Object
standard:enable Naming/ConstantName.
Instance Method Details
#json ⇒ Object
standard:enable Naming/ConstantName
10 11 12 13 14 |
# File 'lib/pinecone/response_parser.rb', line 10 def json JSON.parse(body) rescue body end |