Class: Sendgrid::API::REST::Response::ParseJson

Inherits:
Faraday::Response::Middleware
  • Object
show all
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