Class: Ffprober::Stream
- Inherits:
-
Object
- Object
- Ffprober::Stream
- Defined in:
- lib/ffprober/stream.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(object_attribute_hash) ⇒ Stream
constructor
A new instance of Stream.
Constructor Details
#initialize(object_attribute_hash) ⇒ Stream
Returns a new instance of Stream.
3 4 5 6 7 8 9 10 11 12 13 |
# File 'lib/ffprober/stream.rb', line 3 def initialize(object_attribute_hash) object_attribute_hash.each do |key, value| instance_variable_set("@#{key}", value) unless self.class.method_defined?(key) self.class.send(:define_method, key) do instance_variable_get("@#{key}") end end end end |