Class: Google::Apis::ProdTtSasportalV1alpha1::SasPortalChannelWithScore

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/prod_tt_sasportal_v1alpha1/classes.rb,
lib/google/apis/prod_tt_sasportal_v1alpha1/representations.rb,
lib/google/apis/prod_tt_sasportal_v1alpha1/representations.rb

Overview

The channel with score.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SasPortalChannelWithScore

Returns a new instance of SasPortalChannelWithScore.



67
68
69
# File 'lib/google/apis/prod_tt_sasportal_v1alpha1/classes.rb', line 67

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#frequency_rangeGoogle::Apis::ProdTtSasportalV1alpha1::SasPortalFrequencyRange

Frequency range from low_frequency to high_frequency. Corresponds to the JSON property frequencyRange



60
61
62
# File 'lib/google/apis/prod_tt_sasportal_v1alpha1/classes.rb', line 60

def frequency_range
  @frequency_range
end

#scoreFloat

The channel score, normalized to be in the range [0,100]. Corresponds to the JSON property score

Returns:

  • (Float)


65
66
67
# File 'lib/google/apis/prod_tt_sasportal_v1alpha1/classes.rb', line 65

def score
  @score
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



72
73
74
75
# File 'lib/google/apis/prod_tt_sasportal_v1alpha1/classes.rb', line 72

def update!(**args)
  @frequency_range = args[:frequency_range] if args.key?(:frequency_range)
  @score = args[:score] if args.key?(:score)
end