class Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkup

Fields for an individual `ClaimReview` element. Except for sub-messages that group fields together, each of these fields correspond those in schema. org/ClaimReview. We list the precise mapping for each field.

Attributes

claim_appearances[RW]

A list of links to works in which this claim appears, aside from the one specified in `claim_first_appearance`. Corresponds to `ClaimReview. itemReviewed.appearance.url`. Corresponds to the JSON property `claimAppearances` @return [Array<String>]

claim_author[RW]

Information about the claim author. Corresponds to the JSON property `claimAuthor` @return [Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1ClaimAuthor]

claim_date[RW]

The date when the claim was made or entered public discourse. Corresponds to ` ClaimReview.itemReviewed.datePublished`. Corresponds to the JSON property `claimDate` @return [String]

claim_first_appearance[RW]

A link to a work in which this claim first appears. Corresponds to ` type=Claim] at ClaimReview.itemReviewed[.firstAppearance.url`. Corresponds to the JSON property `claimFirstAppearance` @return [String]

claim_location[RW]

The location where this claim was made. Corresponds to `ClaimReview. itemReviewed.name`. Corresponds to the JSON property `claimLocation` @return [String]

claim_reviewed[RW]

A short summary of the claim being evaluated. Corresponds to `ClaimReview. claimReviewed`. Corresponds to the JSON property `claimReviewed` @return [String]

rating[RW]

Information about the claim rating. Corresponds to the JSON property `rating` @return [Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1ClaimRating]

url[RW]

This field is optional, and will default to the page URL. We provide this field to allow you the override the default value, but the only permitted override is the page URL plus an optional anchor link (“page jump”). Corresponds to `ClaimReview.url` Corresponds to the JSON property `url` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/factchecktools_v1alpha1/classes.rb, line 283
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 288
def update!(**args)
  @claim_appearances = args[:claim_appearances] if args.key?(:claim_appearances)
  @claim_author = args[:claim_author] if args.key?(:claim_author)
  @claim_date = args[:claim_date] if args.key?(:claim_date)
  @claim_first_appearance = args[:claim_first_appearance] if args.key?(:claim_first_appearance)
  @claim_location = args[:claim_location] if args.key?(:claim_location)
  @claim_reviewed = args[:claim_reviewed] if args.key?(:claim_reviewed)
  @rating = args[:rating] if args.key?(:rating)
  @url = args[:url] if args.key?(:url)
end