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



281
282
283
# File 'generated/google/apis/factchecktools_v1alpha1/classes.rb', line 281

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>)


237
238
239
# File 'generated/google/apis/factchecktools_v1alpha1/classes.rb', line 237

def claim_appearances
  @claim_appearances
end

#claim_authorGoogle::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1ClaimAuthor

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



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

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)


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

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)


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

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)


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

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)


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

def claim_reviewed
  @claim_reviewed
end

#ratingGoogle::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1ClaimRating

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



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

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)


279
280
281
# File 'generated/google/apis/factchecktools_v1alpha1/classes.rb', line 279

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



286
287
288
289
290
291
292
293
294
295
# File 'generated/google/apis/factchecktools_v1alpha1/classes.rb', line 286

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