Class: WscSdk::Models::TranscoderBooleanStat

Inherits:
WscSdk::Model show all
Defined in:
lib/wsc_sdk/models/transcoder_boolean_stat.rb

Overview

A model to represent the Stats of a Transcoder 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

#to_sObject

Convert the stat to a string



33
34
35
36
37
# File 'lib/wsc_sdk/models/transcoder_boolean_stat.rb', line 33

def to_s
  str = "#{value.to_s}#{units}"
  str += " | #{self.text}" if status != "normal"
  str
end