class Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1ClaimRating

Information about the claim rating.

Attributes

best_rating[RW]

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` @return [Fixnum]

image_url[RW]

Corresponds to `ClaimReview.reviewRating.image`. Corresponds to the JSON property `imageUrl` @return [String]

rating_explanation[RW]

Corresponds to `ClaimReview.reviewRating.ratingExplanation`. Corresponds to the JSON property `ratingExplanation` @return [String]

rating_value[RW]

A numeric rating of this claim, in the range worstRating — bestRating inclusive. Corresponds to `ClaimReview.reviewRating.ratingValue`. Corresponds to the JSON property `ratingValue` @return [Fixnum]

textual_rating[RW]

The truthfulness rating as a human-readible short word or phrase. Corresponds to `ClaimReview.reviewRating.alternateName`. Corresponds to the JSON property `textualRating` @return [String]

worst_rating[RW]

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` @return [Fixnum]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/factchecktools_v1alpha1/classes.rb, line 138
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/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