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 }.freeze
Instance Method Summary collapse
-
#json ⇒ Object
standard:enable Naming/ConstantName.
Instance Method Details
#json ⇒ Object
standard:enable Naming/ConstantName
12 13 14 15 16 |
# File 'lib/pinecone/response_parser.rb', line 12 def json JSON.parse(body) rescue body end |