Class: Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage

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

Holds one or more instances of ClaimReview markup for a webpage.

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

Returns a new instance of GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage.



349
350
351
# File 'generated/google/apis/factchecktools_v1alpha1/classes.rb', line 349

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

Instance Attribute Details

#claim_review_authorGoogle::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewAuthor

Information about the claim review author. Corresponds to the JSON property claimReviewAuthor



311
312
313
# File 'generated/google/apis/factchecktools_v1alpha1/classes.rb', line 311

def claim_review_author
  @claim_review_author
end

#claim_review_markupsArray<Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkup>

A list of individual claim reviews for this page. Each item in the list corresponds to one ClaimReview element. Corresponds to the JSON property claimReviewMarkups



317
318
319
# File 'generated/google/apis/factchecktools_v1alpha1/classes.rb', line 317

def claim_review_markups
  @claim_review_markups
end

#nameString

The name of this ClaimReview markup page resource, in the form of pages/page_id`. Except for update requests, this field is output-only and should not be set by the user. Corresponds to the JSON propertyname`

Returns:

  • (String)


324
325
326
# File 'generated/google/apis/factchecktools_v1alpha1/classes.rb', line 324

def name
  @name
end

#page_urlString

The URL of the page associated with this ClaimReview markup. While every individual ClaimReview has its own URL field, semantically this is a page-level field, and each ClaimReview on this page will use this value unless individually overridden.
Corresponds to ClaimReview.url Corresponds to the JSON property pageUrl

Returns:

  • (String)


333
334
335
# File 'generated/google/apis/factchecktools_v1alpha1/classes.rb', line 333

def page_url
  @page_url
end

#publish_dateString

The date when the fact check was published. Similar to the URL, semantically this is a page-level field, and each ClaimReview on this page will contain the same value.
Corresponds to ClaimReview.datePublished Corresponds to the JSON property publishDate

Returns:

  • (String)


341
342
343
# File 'generated/google/apis/factchecktools_v1alpha1/classes.rb', line 341

def publish_date
  @publish_date
end

#version_idString

The version ID for this markup. Except for update requests, this field is output-only and should not be set by the user. Corresponds to the JSON property versionId

Returns:

  • (String)


347
348
349
# File 'generated/google/apis/factchecktools_v1alpha1/classes.rb', line 347

def version_id
  @version_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



354
355
356
357
358
359
360
361
# File 'generated/google/apis/factchecktools_v1alpha1/classes.rb', line 354

def update!(**args)
  @claim_review_author = args[:claim_review_author] if args.key?(:claim_review_author)
  @claim_review_markups = args[:claim_review_markups] if args.key?(:claim_review_markups)
  @name = args[:name] if args.key?(:name)
  @page_url = args[:page_url] if args.key?(:page_url)
  @publish_date = args[:publish_date] if args.key?(:publish_date)
  @version_id = args[:version_id] if args.key?(:version_id)
end