Class: WscSdk::Endpoints::UllStreamTargets

Inherits:
WscSdk::Endpoint show all
Defined in:
lib/wsc_sdk/endpoints/ull_stream_targets.rb

Overview

An endpoint to manage Ultra Low Latency Stream Targets

Instance Attribute Summary

Attributes inherited from WscSdk::Endpoint

#client, #parent_path

Instance Method Summary collapse

Methods inherited from WscSdk::Endpoint

actions, #build, #create, #create_path, #delete, #delete_path, #find, #find_path, #handle_json_error, #initialize, #list, model_action, model_class, #model_name_plural, #model_name_singular, #refresh, #transform_list, #transform_model, #update, #update_path

Methods included from Loggable

#logger, #logger=

Constructor Details

This class inherits a constructor from WscSdk::Endpoint

Instance Method Details

#list_pathString

Get the path for the list of models

Returns:

  • (String)

    The list path.



26
27
28
# File 'lib/wsc_sdk/endpoints/ull_stream_targets.rb', line 26

def list_path
  [ parent_path, "ull" ].compact.join("/")
end

#model_path(id) ⇒ String

Get the path for an individual model.

Parameters:

  • id (Any)

    The unique id of the model.

Returns:

  • (String)

    The model path.



38
39
40
# File 'lib/wsc_sdk/endpoints/ull_stream_targets.rb', line 38

def model_path(id)
  [ parent_path, "ull", id ].compact.join("/")
end