Sha256: cf7e53901e88a5e4b2d6dfe7cba1bffad69cc7ec836cdebe0305fe51f5059aab
Contents?: true
Size: 267 Bytes
Versions: 22
Compression:
Stored size: 267 Bytes
Contents
require "multi_json" module TrelloFlow module Api class JSONParser < Faraday::Response::Middleware def parse(body) return if body.blank? json = MultiJson.load(body, symbolize_keys: true) { data: json } end end end end
Version data entries
22 entries across 22 versions & 1 rubygems
Version | Path |
---|---|
trello_flow-1.1.0 | lib/trello_flow/api/json_parser.rb |
trello_flow-1.0.1 | lib/trello_flow/api/json_parser.rb |