class MyMoip::JsonParser
Public Class Methods
call(body, format)
click to toggle source
# File lib/mymoip/json_parser.rb, line 3 def self.call(body, format) if format == :json JSON.parse body.match(/\?\((?<valid_json>.+)\)/)[:valid_json] else body end end