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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/factchecktools_v1alpha1/classes.rb,
lib/google/apis/factchecktools_v1alpha1/representations.rb,
lib/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

Constructor Details

#initialize(**args) ⇒ GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage

Returns a new instance of GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage.



343
344
345
# File 'lib/google/apis/factchecktools_v1alpha1/classes.rb', line 343

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



307
308
309
# File 'lib/google/apis/factchecktools_v1alpha1/classes.rb', line 307

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



313
314
315
# File 'lib/google/apis/factchecktools_v1alpha1/classes.rb', line 313

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)


320
321
322
# File 'lib/google/apis/factchecktools_v1alpha1/classes.rb', line 320

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)


328
329
330
# File 'lib/google/apis/factchecktools_v1alpha1/classes.rb', line 328

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)


335
336
337
# File 'lib/google/apis/factchecktools_v1alpha1/classes.rb', line 335

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)


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

def version_id
  @version_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



348
349
350
351
352
353
354
355
# File 'lib/google/apis/factchecktools_v1alpha1/classes.rb', line 348

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