class WowzaRest::Data::Application::TranscoderConfig

Attributes

templates[R]

Public Class Methods

new(attrs = {}) click to toggle source
Calls superclass method
# File lib/wowza_rest/data/application.rb, line 37
def initialize(attrs = {})
  if !attrs.nil? &&  attrs['templates']
    keys_reader :templates
    @templates = wrap_array_objects(
      attrs.delete('templates')['templates'], Template
    )
  end
  super(attrs)
end

Public Instance Methods

to_h() click to toggle source
Calls superclass method
# File lib/wowza_rest/data/application.rb, line 47
def to_h
  super() do |k, arr|
    if k == :@templates
      {
        templates: objects_array_to_hash_array(arr)
      }
    else
      objects_array_to_hash_array(arr)
    end
  end
end