Class: Google::Apis::CommentanalyzerV1alpha1::Score
- Inherits:
-
Object
- Object
- Google::Apis::CommentanalyzerV1alpha1::Score
- Defined in:
- generated/google/apis/commentanalyzer_v1alpha1/classes.rb,
generated/google/apis/commentanalyzer_v1alpha1/representations.rb,
generated/google/apis/commentanalyzer_v1alpha1/representations.rb
Overview
Analysis scores are described by a value and a ScoreType.
Instance Attribute Summary collapse
-
#type ⇒ String
The type of the above value.
-
#value ⇒ Float
Score value.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Score
constructor
A new instance of Score.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ Score
Returns a new instance of Score.
296 297 298 |
# File 'generated/google/apis/commentanalyzer_v1alpha1/classes.rb', line 296 def initialize(**args) update!(**args) end |
Instance Attribute Details
#type ⇒ String
The type of the above value.
Corresponds to the JSON property type
289 290 291 |
# File 'generated/google/apis/commentanalyzer_v1alpha1/classes.rb', line 289 def type @type end |
#value ⇒ Float
Score value. Semantics described by type below.
Corresponds to the JSON property value
294 295 296 |
# File 'generated/google/apis/commentanalyzer_v1alpha1/classes.rb', line 294 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
301 302 303 304 |
# File 'generated/google/apis/commentanalyzer_v1alpha1/classes.rb', line 301 def update!(**args) @type = args[:type] if args.key?(:type) @value = args[:value] if args.key?(:value) end |