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

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

Information about a claim review.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleFactcheckingFactchecktoolsV1alpha1ClaimReview

Returns a new instance of GoogleFactcheckingFactchecktoolsV1alpha1ClaimReview.



187
188
189
# File 'lib/google/apis/factchecktools_v1alpha1/classes.rb', line 187

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)


160
161
162
# File 'lib/google/apis/factchecktools_v1alpha1/classes.rb', line 160

def language_code
  @language_code
end

#publisherGoogle::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1Publisher

Information about the publisher. Corresponds to the JSON property publisher



165
166
167
# File 'lib/google/apis/factchecktools_v1alpha1/classes.rb', line 165

def publisher
  @publisher
end

#review_dateString

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

Returns:

  • (String)


170
171
172
# File 'lib/google/apis/factchecktools_v1alpha1/classes.rb', line 170

def review_date
  @review_date
end

#textual_ratingString

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

Returns:

  • (String)


175
176
177
# File 'lib/google/apis/factchecktools_v1alpha1/classes.rb', line 175

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)


180
181
182
# File 'lib/google/apis/factchecktools_v1alpha1/classes.rb', line 180

def title
  @title
end

#urlString

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

Returns:

  • (String)


185
186
187
# File 'lib/google/apis/factchecktools_v1alpha1/classes.rb', line 185

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



192
193
194
195
196
197
198
199
# File 'lib/google/apis/factchecktools_v1alpha1/classes.rb', line 192

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