Class: WscSdk::Models::UllStreamTarget

Inherits:
WscSdk::Model show all
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

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

#logger, #logger=

Methods included from ApiResponse

#success?

Constructor Details

This class inherits a constructor from WscSdk::Model

Instance Method Details

#new_model_accessSymbol

Determines the access level of the model based on whether it's a new model or not.

Returns:

  • (Symbol)

    Returns :read_write if it's a new model, or :read if it's 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_pullObject

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