Class: WscSdk::Models::UllStreamTarget
- Inherits:
-
WscSdk::Model
- Object
- WscSdk::Model
- WscSdk::Models::UllStreamTarget
- Defined in:
- lib/wsc_sdk/models/ull_stream_target.rb
Overview
A model to represent a ULL Stream Target in the Wowza Streaming Cloud API.
Instance Attribute Summary
Attributes inherited from WscSdk::Model
#attributes, #changes, #data_mode, #endpoint, #errors, #partial_data
Instance Method Summary collapse
-
#new_model_access ⇒ Symbol
Determines the access level of the model based on whether it's a new model or not.
-
#source_url_required_if_pull ⇒ Object
Determines the requirement of the source_url field based on whether the target has a `pull` source delivery method.
Methods inherited from WscSdk::Model
#add_error, attribute, #build_payload, #build_payload!, #clean!, #clear_primary_key, #delete, #dirty?, #has_attribute?, #ingest_attribute, #ingest_attributes, #initialize, #initialize_attributes, model_name_plural, model_name_singular, #new_model?, #primary_key, primary_key, #primary_key_attribute, #refresh, #save, #schema, schema, #success?, #valid!, #valid?, #validate
Methods included from Loggable
Methods included from ApiResponse
Constructor Details
This class inherits a constructor from WscSdk::Model
Instance Method Details
#new_model_access ⇒ Symbol
Determines the access level of the model based on whether it's a new model or not.
42 43 44 |
# File 'lib/wsc_sdk/models/ull_stream_target.rb', line 42 def new_model_access self.new_model? ? :read_write : :read end |
#source_url_required_if_pull ⇒ Object
Determines the requirement of the source_url field based on whether the target has a `pull` source delivery method.
49 50 51 |
# File 'lib/wsc_sdk/models/ull_stream_target.rb', line 49 def source_url_required_if_pull self.source_delivery_method == WscSdk::Enums::DeliveryMethod::PULL end |