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



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

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)


157
158
159
# File 'generated/google/apis/factchecktools_v1alpha1/classes.rb', line 157

def language_code
  @language_code
end

#publisherGoogle::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1Publisher

Information about the publisher. Corresponds to the JSON property publisher



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

def publisher
  @publisher
end

#review_dateString

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

Returns:

  • (String)


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

def review_date
  @review_date
end

#textual_ratingString

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

Returns:

  • (String)


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

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)


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

def title
  @title
end

#urlString

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

Returns:

  • (String)


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

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



189
190
191
192
193
194
195
196
# File 'generated/google/apis/factchecktools_v1alpha1/classes.rb', line 189

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