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

Constructor Details

#initialize(**args) ⇒ GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkup

Returns a new instance of GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkup.



283
284
285
# File 'generated/google/apis/factchecktools_v1alpha1/classes.rb', line 283

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


239
240
241
# File 'generated/google/apis/factchecktools_v1alpha1/classes.rb', line 239

def claim_appearances
  @claim_appearances
end

#claim_authorGoogle::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1ClaimAuthor

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



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

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)


250
251
252
# File 'generated/google/apis/factchecktools_v1alpha1/classes.rb', line 250

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)


256
257
258
# File 'generated/google/apis/factchecktools_v1alpha1/classes.rb', line 256

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)


262
263
264
# File 'generated/google/apis/factchecktools_v1alpha1/classes.rb', line 262

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)


268
269
270
# File 'generated/google/apis/factchecktools_v1alpha1/classes.rb', line 268

def claim_reviewed
  @claim_reviewed
end

#ratingGoogle::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1ClaimRating

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



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

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)


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

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



288
289
290
291
292
293
294
295
296
297
# File 'generated/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