Sha256: 67611989148a6a8d8c02add5a40033c2279fab067d3c273174af6b27eab0ea81
Contents?: true
Size: 369 Bytes
Versions: 1
Compression:
Stored size: 369 Bytes
Contents
# typed: true # 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ffprober-1.0 | lib/ffprober/parsers/json.rb |