Class: WscSdk::Models::TranscoderFloatStat
- Inherits:
-
WscSdk::Model
- Object
- WscSdk::Model
- WscSdk::Models::TranscoderFloatStat
- Defined in:
- lib/wsc_sdk/models/transcoder_float_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
-
#to_s ⇒ Object
Convert the stat to a string.
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
#to_s ⇒ Object
Convert the stat to a string
32 33 34 35 36 |
# File 'lib/wsc_sdk/models/transcoder_float_stat.rb', line 32 def to_s str = "#{value.to_s}#{units}" str += " | #{self.text}" if status != "normal" str end |