Class: Sendgrid::API::REST::Response::ParseJson
- Inherits:
-
Faraday::Response::Middleware
- Object
- Faraday::Response::Middleware
- Sendgrid::API::REST::Response::ParseJson
- Defined in:
- lib/sendgrid/api/rest/response/parse_json.rb
Instance Method Summary collapse
Instance Method Details
#parse(body) ⇒ Object
10 11 12 |
# File 'lib/sendgrid/api/rest/response/parse_json.rb', line 10 def parse(body) JSON.parse(body, :symbolize_names => true) unless blank?(body) end |