Class: Bitmovin::Encoding::StreamOutput

Inherits:
Object
  • Object
show all
Defined in:
lib/bitmovin/encoding/stream_output.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#aclObject

Returns the value of attribute acl.



10
11
12
# File 'lib/bitmovin/encoding/stream_output.rb', line 10

def acl
  @acl
end

#output_idObject

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_pathObject

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

#errorsObject



21
22
23
# File 'lib/bitmovin/encoding/stream_output.rb', line 21

def errors
  @errors
end

#invalid?Boolean

Returns:

  • (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

Returns:

  • (Boolean)


12
13
14
15
# File 'lib/bitmovin/encoding/stream_output.rb', line 12

def valid?
  validate!
  @errors.empty?
end