Class: Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1ClaimReview

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

Information about a claim review.

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

Returns a new instance of GoogleFactcheckingFactchecktoolsV1alpha1ClaimReview.



190
191
192
# File 'generated/google/apis/factchecktools_v1alpha1/classes.rb', line 190

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

Instance Attribute Details

#language_codeString

The language this review was written in. For instance, "en" or "de". Corresponds to the JSON property languageCode

Returns:

  • (String)


163
164
165
# File 'generated/google/apis/factchecktools_v1alpha1/classes.rb', line 163

def language_code
  @language_code
end

#publisherGoogle::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1Publisher

Information about the publisher. Corresponds to the JSON property publisher



168
169
170
# File 'generated/google/apis/factchecktools_v1alpha1/classes.rb', line 168

def publisher
  @publisher
end

#review_dateString

The date the claim was reviewed. Corresponds to the JSON property reviewDate

Returns:

  • (String)


173
174
175
# File 'generated/google/apis/factchecktools_v1alpha1/classes.rb', line 173

def review_date
  @review_date
end

#textual_ratingString

Textual rating. For instance, "Mostly false". Corresponds to the JSON property textualRating

Returns:

  • (String)


178
179
180
# File 'generated/google/apis/factchecktools_v1alpha1/classes.rb', line 178

def textual_rating
  @textual_rating
end

#titleString

The title of this claim review, if it can be determined. Corresponds to the JSON property title

Returns:

  • (String)


183
184
185
# File 'generated/google/apis/factchecktools_v1alpha1/classes.rb', line 183

def title
  @title
end

#urlString

The URL of this claim review. Corresponds to the JSON property url

Returns:

  • (String)


188
189
190
# File 'generated/google/apis/factchecktools_v1alpha1/classes.rb', line 188

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



195
196
197
198
199
200
201
202
# File 'generated/google/apis/factchecktools_v1alpha1/classes.rb', line 195

def update!(**args)
  @language_code = args[:language_code] if args.key?(:language_code)
  @publisher = args[:publisher] if args.key?(:publisher)
  @review_date = args[:review_date] if args.key?(:review_date)
  @textual_rating = args[:textual_rating] if args.key?(:textual_rating)
  @title = args[:title] if args.key?(:title)
  @url = args[:url] if args.key?(:url)
end