Class: WowzaRest::Data::Application
- Defined in:
- lib/wowza_rest/data/application.rb
Defined Under Namespace
Classes: DRMConfig, DVRConfig, Module, SecurityConfig, StreamConfig, TranscoderConfig
Instance Attribute Summary collapse
-
#drm_config ⇒ Object
readonly
Returns the value of attribute drm_config.
-
#dvr_config ⇒ Object
readonly
Returns the value of attribute dvr_config.
-
#modules ⇒ Object
readonly
Returns the value of attribute modules.
-
#security_config ⇒ Object
readonly
Returns the value of attribute security_config.
-
#stream_config ⇒ Object
readonly
Returns the value of attribute stream_config.
-
#transcoder_config ⇒ Object
readonly
Returns the value of attribute transcoder_config.
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ Application
constructor
A new instance of Application.
- #to_h ⇒ Object
Methods inherited from Base
#define_key_getter, #include?, #keys_reader, #objects_array_to_hash_array, #setup_attributes, #to_json, #wrap_array_objects
Constructor Details
#initialize(attrs = {}) ⇒ Application
Returns a new instance of Application.
9 10 11 12 13 14 |
# File 'lib/wowza_rest/data/application.rb', line 9 def initialize(attrs = {}) keys_reader :securityConfig, :streamConfig, :dvrConfig, :drmConfig, :transcoderConfig, :modules initialize_object_attrs(attrs || {}) super(attrs) end |
Instance Attribute Details
#drm_config ⇒ Object (readonly)
Returns the value of attribute drm_config.
6 7 8 |
# File 'lib/wowza_rest/data/application.rb', line 6 def drm_config @drm_config end |
#dvr_config ⇒ Object (readonly)
Returns the value of attribute dvr_config.
6 7 8 |
# File 'lib/wowza_rest/data/application.rb', line 6 def dvr_config @dvr_config end |
#modules ⇒ Object (readonly)
Returns the value of attribute modules.
6 7 8 |
# File 'lib/wowza_rest/data/application.rb', line 6 def modules @modules end |
#security_config ⇒ Object (readonly)
Returns the value of attribute security_config.
6 7 8 |
# File 'lib/wowza_rest/data/application.rb', line 6 def security_config @security_config end |
#stream_config ⇒ Object (readonly)
Returns the value of attribute stream_config.
6 7 8 |
# File 'lib/wowza_rest/data/application.rb', line 6 def stream_config @stream_config end |
#transcoder_config ⇒ Object (readonly)
Returns the value of attribute transcoder_config.
6 7 8 |
# File 'lib/wowza_rest/data/application.rb', line 6 def transcoder_config @transcoder_config end |
Instance Method Details
#to_h ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/wowza_rest/data/application.rb', line 16 def to_h super() do |k, arr| if k == :@modules { moduleList: objects_array_to_hash_array(arr) } else objects_array_to_hash_array(arr) end end end |