Class: Ffprober::Format

Inherits:
Object
  • Object
show all
Defined in:
lib/ffprober/format.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(object_attribute_hash) ⇒ Format

Returns a new instance of Format.



7
8
9
10
11
12
# File 'lib/ffprober/format.rb', line 7

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

Instance Attribute Details

#bit_rateObject

Returns the value of attribute bit_rate.



3
4
5
# File 'lib/ffprober/format.rb', line 3

def bit_rate
  @bit_rate
end

#durationObject

Returns the value of attribute duration.



3
4
5
# File 'lib/ffprober/format.rb', line 3

def duration
  @duration
end

#filenameObject

Returns the value of attribute filename.



3
4
5
# File 'lib/ffprober/format.rb', line 3

def filename
  @filename
end

#format_long_nameObject

Returns the value of attribute format_long_name.



3
4
5
# File 'lib/ffprober/format.rb', line 3

def format_long_name
  @format_long_name
end

#format_nameObject

Returns the value of attribute format_name.



3
4
5
# File 'lib/ffprober/format.rb', line 3

def format_name
  @format_name
end

#nb_streamsObject

Returns the value of attribute nb_streams.



3
4
5
# File 'lib/ffprober/format.rb', line 3

def nb_streams
  @nb_streams
end

#sizeObject

Returns the value of attribute size.



3
4
5
# File 'lib/ffprober/format.rb', line 3

def size
  @size
end

#start_timeObject

Returns the value of attribute start_time.



3
4
5
# File 'lib/ffprober/format.rb', line 3

def start_time
  @start_time
end