Class: Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimSearchResponse

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

Response from searching fact-checked claims.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimSearchResponse

Returns a new instance of GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimSearchResponse.



418
419
420
# File 'lib/google/apis/factchecktools_v1alpha1/classes.rb', line 418

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

Instance Attribute Details

#claimsArray<Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1Claim>

The list of claims and all of their associated information. Corresponds to the JSON property claims



410
411
412
# File 'lib/google/apis/factchecktools_v1alpha1/classes.rb', line 410

def claims
  @claims
end

#next_page_tokenString

The next pagination token in the Search response. It should be used as the page_token for the following request. An empty value means no more results. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


416
417
418
# File 'lib/google/apis/factchecktools_v1alpha1/classes.rb', line 416

def next_page_token
  @next_page_token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



423
424
425
426
# File 'lib/google/apis/factchecktools_v1alpha1/classes.rb', line 423

def update!(**args)
  @claims = args[:claims] if args.key?(:claims)
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end