Sha256: 6c1eb2e4fe6f4d9a4591f9fb1f09f1448c544bc9abba6cbdac603b0e7328016b

Contents?: true

Size: 376 Bytes

Versions: 12

Compression:

Stored size: 376 Bytes

Contents

module Ffprober
  class Format
    attr_accessor :filename, :nb_streams, :format_name,
                  :format_long_name, :start_time, :duration,
                  :size, :bit_rate

    def initialize(object_attribute_hash)
      object_attribute_hash.map do |(k, v)|
        writer_m = "#{k}="
        send(writer_m, v) if respond_to?(writer_m)
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
ffprober-0.2.1 lib/ffprober/format.rb
ffprober-0.2.0 lib/ffprober/format.rb
ffprober-0.1.7 lib/ffprober/format.rb
ffprober-0.1.6 lib/ffprober/format.rb
ffprober-0.1.5 lib/ffprober/format.rb
ffprober-0.1.4 lib/ffprober/format.rb
ffprober-0.1.3 lib/ffprober/format.rb
ffprober-0.1.2 lib/ffprober/format.rb
ffprober-0.1.1 lib/ffprober/format.rb
ffprober-0.1.0 lib/ffprober/format.rb
ffprober-0.0.2 lib/ffprober/format.rb
ffprober-0.0.1 lib/ffprober/format.rb