Class: Ffprober::Format
- Inherits:
-
Object
- Object
- Ffprober::Format
- Defined in:
- lib/ffprober/format.rb
Instance Attribute Summary collapse
-
#bit_rate ⇒ Object
Returns the value of attribute bit_rate.
-
#duration ⇒ Object
Returns the value of attribute duration.
-
#filename ⇒ Object
Returns the value of attribute filename.
-
#format_long_name ⇒ Object
Returns the value of attribute format_long_name.
-
#format_name ⇒ Object
Returns the value of attribute format_name.
-
#nb_streams ⇒ Object
Returns the value of attribute nb_streams.
-
#size ⇒ Object
Returns the value of attribute size.
-
#start_time ⇒ Object
Returns the value of attribute start_time.
Instance Method Summary collapse
-
#initialize(object_attribute_hash) ⇒ Format
constructor
A new instance of Format.
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_rate ⇒ Object
Returns the value of attribute bit_rate.
3 4 5 |
# File 'lib/ffprober/format.rb', line 3 def bit_rate @bit_rate end |
#duration ⇒ Object
Returns the value of attribute duration.
3 4 5 |
# File 'lib/ffprober/format.rb', line 3 def duration @duration end |
#filename ⇒ Object
Returns the value of attribute filename.
3 4 5 |
# File 'lib/ffprober/format.rb', line 3 def filename @filename end |
#format_long_name ⇒ Object
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_name ⇒ Object
Returns the value of attribute format_name.
3 4 5 |
# File 'lib/ffprober/format.rb', line 3 def format_name @format_name end |
#nb_streams ⇒ Object
Returns the value of attribute nb_streams.
3 4 5 |
# File 'lib/ffprober/format.rb', line 3 def nb_streams @nb_streams end |
#size ⇒ Object
Returns the value of attribute size.
3 4 5 |
# File 'lib/ffprober/format.rb', line 3 def size @size end |
#start_time ⇒ Object
Returns the value of attribute start_time.
3 4 5 |
# File 'lib/ffprober/format.rb', line 3 def start_time @start_time end |