Class: Bitmovin::Encoding::StreamOutput
- Inherits:
-
Object
- Object
- Bitmovin::Encoding::StreamOutput
- Defined in:
- lib/bitmovin/encoding/stream_output.rb
Instance Attribute Summary collapse
-
#acl ⇒ Object
Returns the value of attribute acl.
-
#output_id ⇒ Object
Returns the value of attribute output_id.
-
#output_path ⇒ Object
Returns the value of attribute output_path.
Instance Method Summary collapse
- #errors ⇒ Object
-
#initialize(hash = {}) ⇒ StreamOutput
constructor
A new instance of StreamOutput.
- #invalid? ⇒ Boolean
- #to_json(args) ⇒ Object
- #valid? ⇒ Boolean
Constructor Details
#initialize(hash = {}) ⇒ StreamOutput
Returns a new instance of StreamOutput.
3 4 5 6 7 8 |
# File 'lib/bitmovin/encoding/stream_output.rb', line 3 def initialize(hash = {}) @errors = [] hash.each do |name, value| instance_variable_set("@#{ActiveSupport::Inflector.underscore(name)}", value) end end |
Instance Attribute Details
#acl ⇒ Object
Returns the value of attribute acl.
10 11 12 |
# File 'lib/bitmovin/encoding/stream_output.rb', line 10 def acl @acl end |
#output_id ⇒ Object
Returns the value of attribute output_id.
10 11 12 |
# File 'lib/bitmovin/encoding/stream_output.rb', line 10 def output_id @output_id end |
#output_path ⇒ Object
Returns the value of attribute output_path.
10 11 12 |
# File 'lib/bitmovin/encoding/stream_output.rb', line 10 def output_path @output_path end |
Instance Method Details
#errors ⇒ Object
21 22 23 |
# File 'lib/bitmovin/encoding/stream_output.rb', line 21 def errors @errors end |
#invalid? ⇒ Boolean
17 18 19 |
# File 'lib/bitmovin/encoding/stream_output.rb', line 17 def invalid? !valid? end |
#to_json(args) ⇒ Object
25 26 27 |
# File 'lib/bitmovin/encoding/stream_output.rb', line 25 def to_json(args) collect_attributes.to_json(args) end |
#valid? ⇒ Boolean
12 13 14 15 |
# File 'lib/bitmovin/encoding/stream_output.rb', line 12 def valid? validate! @errors.empty? end |