Class: Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1ClaimRating
- Inherits:
-
Object
- Object
- Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1ClaimRating
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/factchecktools_v1alpha1/classes.rb,
generated/google/apis/factchecktools_v1alpha1/representations.rb,
generated/google/apis/factchecktools_v1alpha1/representations.rb
Overview
Information about the claim rating.
Instance Attribute Summary collapse
-
#best_rating ⇒ Fixnum
For numeric ratings, the best value possible in the scale from worst to best.
-
#image_url ⇒ String
Corresponds to
ClaimReview.reviewRating.image
. -
#rating_explanation ⇒ String
Corresponds to
ClaimReview.reviewRating.ratingExplanation
. -
#rating_value ⇒ Fixnum
A numeric rating of this claim, in the range worstRating — bestRating inclusive.
-
#textual_rating ⇒ String
The truthfulness rating as a human-readible short word or phrase.
-
#worst_rating ⇒ Fixnum
For numeric ratings, the worst value possible in the scale from worst to best.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleFactcheckingFactchecktoolsV1alpha1ClaimRating
constructor
A new instance of GoogleFactcheckingFactchecktoolsV1alpha1ClaimRating.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleFactcheckingFactchecktoolsV1alpha1ClaimRating
Returns a new instance of GoogleFactcheckingFactchecktoolsV1alpha1ClaimRating.
138 139 140 |
# File 'generated/google/apis/factchecktools_v1alpha1/classes.rb', line 138 def initialize(**args) update!(**args) end |
Instance Attribute Details
#best_rating ⇒ Fixnum
For numeric ratings, the best value possible in the scale from worst to best.
Corresponds to ClaimReview.reviewRating.bestRating
.
Corresponds to the JSON property bestRating
108 109 110 |
# File 'generated/google/apis/factchecktools_v1alpha1/classes.rb', line 108 def @best_rating end |
#image_url ⇒ String
Corresponds to ClaimReview.reviewRating.image
.
Corresponds to the JSON property imageUrl
113 114 115 |
# File 'generated/google/apis/factchecktools_v1alpha1/classes.rb', line 113 def image_url @image_url end |
#rating_explanation ⇒ String
Corresponds to ClaimReview.reviewRating.ratingExplanation
.
Corresponds to the JSON property ratingExplanation
118 119 120 |
# File 'generated/google/apis/factchecktools_v1alpha1/classes.rb', line 118 def @rating_explanation end |
#rating_value ⇒ Fixnum
A numeric rating of this claim, in the range worstRating — bestRating
inclusive. Corresponds to ClaimReview.reviewRating.ratingValue
.
Corresponds to the JSON property ratingValue
124 125 126 |
# File 'generated/google/apis/factchecktools_v1alpha1/classes.rb', line 124 def @rating_value end |
#textual_rating ⇒ String
The truthfulness rating as a human-readible short word or phrase. Corresponds
to ClaimReview.reviewRating.alternateName
.
Corresponds to the JSON property textualRating
130 131 132 |
# File 'generated/google/apis/factchecktools_v1alpha1/classes.rb', line 130 def @textual_rating end |
#worst_rating ⇒ Fixnum
For numeric ratings, the worst value possible in the scale from worst to best.
Corresponds to ClaimReview.reviewRating.worstRating
.
Corresponds to the JSON property worstRating
136 137 138 |
# File 'generated/google/apis/factchecktools_v1alpha1/classes.rb', line 136 def @worst_rating end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
143 144 145 146 147 148 149 150 |
# File 'generated/google/apis/factchecktools_v1alpha1/classes.rb', line 143 def update!(**args) @best_rating = args[:best_rating] if args.key?(:best_rating) @image_url = args[:image_url] if args.key?(:image_url) @rating_explanation = args[:rating_explanation] if args.key?(:rating_explanation) @rating_value = args[:rating_value] if args.key?(:rating_value) @textual_rating = args[:textual_rating] if args.key?(:textual_rating) @worst_rating = args[:worst_rating] if args.key?(:worst_rating) end |