Class: WowzaRest::Data::Instance
- Defined in:
- lib/wowza_rest/data/instance.rb
Defined Under Namespace
Classes: IncomingStream, OutgoingStream, Recorder, StreamGroup
Instance Attribute Summary collapse
-
#incoming_streams ⇒ Object
readonly
Returns the value of attribute incoming_streams.
-
#outgoing_streams ⇒ Object
readonly
Returns the value of attribute outgoing_streams.
-
#recorders ⇒ Object
readonly
Returns the value of attribute recorders.
-
#stream_groups ⇒ Object
readonly
Returns the value of attribute stream_groups.
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ Instance
constructor
rubocop:disable Metrics/MethodLength.
Methods inherited from Base
#define_key_getter, #include?, #keys_reader, #objects_array_to_hash_array, #setup_attributes, #to_h, #to_json, #wrap_array_objects
Constructor Details
#initialize(attrs = {}) ⇒ Instance
rubocop:disable Metrics/MethodLength
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/wowza_rest/data/instance.rb', line 10 def initialize(attrs = {}) keys_reader :incomingStreams, :outgoingStreams, :recorders, :streamGroups @incoming_streams = wrap_array_objects( attrs.delete('incomingStreams'), IncomingStream ) @outgoing_streams = wrap_array_objects( attrs.delete('outgoingStreams'), OutgoingStream ) @recorders = wrap_array_objects( attrs.delete('recorders'), Recorder ) @stream_groups = wrap_array_objects( attrs.delete('streamGroups'), StreamGroup ) super(attrs) end |
Instance Attribute Details
#incoming_streams ⇒ Object (readonly)
Returns the value of attribute incoming_streams.
6 7 8 |
# File 'lib/wowza_rest/data/instance.rb', line 6 def incoming_streams @incoming_streams end |
#outgoing_streams ⇒ Object (readonly)
Returns the value of attribute outgoing_streams.
6 7 8 |
# File 'lib/wowza_rest/data/instance.rb', line 6 def outgoing_streams @outgoing_streams end |
#recorders ⇒ Object (readonly)
Returns the value of attribute recorders.
6 7 8 |
# File 'lib/wowza_rest/data/instance.rb', line 6 def recorders @recorders end |
#stream_groups ⇒ Object (readonly)
Returns the value of attribute stream_groups.
6 7 8 |
# File 'lib/wowza_rest/data/instance.rb', line 6 def stream_groups @stream_groups end |