Class: Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkup
- Inherits:
-
Object
- Object
- Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkup
- 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
-
#claim_appearances ⇒ Array<String>
A list of links to works in which this claim appears, aside from the one specified in
claim_first_appearance
.
Corresponds toClaimReview.itemReviewed[@type=Claim].appearance.url
. -
#claim_author ⇒ Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1ClaimAuthor
Information about the claim author.
-
#claim_date ⇒ String
The date when the claim was made or entered public discourse.
Corresponds toClaimReview.itemReviewed.datePublished
. -
#claim_first_appearance ⇒ String
A link to a work in which this claim first appears.
Corresponds toClaimReview.itemReviewed[@type=Claim].firstAppearance.url
. -
#claim_location ⇒ String
The location where this claim was made.
Corresponds toClaimReview.itemReviewed.name
. -
#claim_reviewed ⇒ String
A short summary of the claim being evaluated.
Corresponds toClaimReview.claimReviewed
. -
#rating ⇒ Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1ClaimRating
Information about the claim rating.
-
#url ⇒ String
This field is optional, and will default to the page URL.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkup
constructor
A new instance of GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkup.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
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_appearances ⇒ Array<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
243 244 245 |
# File 'generated/google/apis/factchecktools_v1alpha1/classes.rb', line 243 def claim_appearances @claim_appearances end |
#claim_author ⇒ Google::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 end |
#claim_date ⇒ String
The date when the claim was made or entered public discourse.
Corresponds to ClaimReview.itemReviewed.datePublished
.
Corresponds to the JSON property claimDate
254 255 256 |
# File 'generated/google/apis/factchecktools_v1alpha1/classes.rb', line 254 def claim_date @claim_date end |
#claim_first_appearance ⇒ String
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
260 261 262 |
# File 'generated/google/apis/factchecktools_v1alpha1/classes.rb', line 260 def claim_first_appearance @claim_first_appearance end |
#claim_location ⇒ String
The location where this claim was made.
Corresponds to ClaimReview.itemReviewed.name
.
Corresponds to the JSON property claimLocation
266 267 268 |
# File 'generated/google/apis/factchecktools_v1alpha1/classes.rb', line 266 def claim_location @claim_location end |
#claim_reviewed ⇒ String
A short summary of the claim being evaluated.
Corresponds to ClaimReview.claimReviewed
.
Corresponds to the JSON property claimReviewed
272 273 274 |
# File 'generated/google/apis/factchecktools_v1alpha1/classes.rb', line 272 def claim_reviewed @claim_reviewed end |
#rating ⇒ Google::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 end |
#url ⇒ String
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
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 |