Class: Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkup

Inherits:
Object
  • Object
show all
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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkup

Returns a new instance of GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkup.



287
288
289
# File 'generated/google/apis/factchecktools_v1alpha1/classes.rb', line 287

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

Instance Attribute Details

#claim_appearancesArray<String>

A list of links to works in which this claim appears, aside from the one specified in claim_first_appearance.
Corresponds to ClaimReview.itemReviewed[@type=Claim].appearance.url. Corresponds to the JSON property claimAppearances

Returns:

  • (Array<String>)


243
244
245
# File 'generated/google/apis/factchecktools_v1alpha1/classes.rb', line 243

def claim_appearances
  @claim_appearances
end

#claim_authorGoogle::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1ClaimAuthor

Information about the claim author. Corresponds to the JSON property claimAuthor



248
249
250
# File 'generated/google/apis/factchecktools_v1alpha1/classes.rb', line 248

def claim_author
  @claim_author
end

#claim_dateString

The date when the claim was made or entered public discourse.
Corresponds to ClaimReview.itemReviewed.datePublished. Corresponds to the JSON property claimDate

Returns:

  • (String)


254
255
256
# File 'generated/google/apis/factchecktools_v1alpha1/classes.rb', line 254

def claim_date
  @claim_date
end

#claim_first_appearanceString

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

Returns:

  • (String)


260
261
262
# File 'generated/google/apis/factchecktools_v1alpha1/classes.rb', line 260

def claim_first_appearance
  @claim_first_appearance
end

#claim_locationString

The location where this claim was made.
Corresponds to ClaimReview.itemReviewed.name. Corresponds to the JSON property claimLocation

Returns:

  • (String)


266
267
268
# File 'generated/google/apis/factchecktools_v1alpha1/classes.rb', line 266

def claim_location
  @claim_location
end

#claim_reviewedString

A short summary of the claim being evaluated.
Corresponds to ClaimReview.claimReviewed. Corresponds to the JSON property claimReviewed

Returns:

  • (String)


272
273
274
# File 'generated/google/apis/factchecktools_v1alpha1/classes.rb', line 272

def claim_reviewed
  @claim_reviewed
end

#ratingGoogle::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1ClaimRating

Information about the claim rating. Corresponds to the JSON property rating



277
278
279
# File 'generated/google/apis/factchecktools_v1alpha1/classes.rb', line 277

def rating
  @rating
end

#urlString

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

Returns:

  • (String)


285
286
287
# File 'generated/google/apis/factchecktools_v1alpha1/classes.rb', line 285

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



292
293
294
295
296
297
298
299
300
301
# File 'generated/google/apis/factchecktools_v1alpha1/classes.rb', line 292

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