Sha256: dfb9aafc35c3c3f3c576e928985cd87bda83ad51927c8f39d698d70fad6b9647
Contents?: true
Size: 354 Bytes
Versions: 3
Compression:
Stored size: 354 Bytes
Contents
# frozen_string_literal: true module Ffprober module Parsers class JsonParser def initialize(json_to_parse) raise ArgumentError, 'No JSON input data' if json_to_parse.nil? @json_to_parse = json_to_parse end def json @json ||= JSON.parse(@json_to_parse, symbolize_names: true) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ffprober-0.5.5 | lib/ffprober/parsers/json.rb |
ffprober-0.5.3 | lib/ffprober/parsers/json.rb |
ffprober-0.5.2 | lib/ffprober/parsers/json.rb |