Class: Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewAuthor

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 the claim review author.

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

Returns a new instance of GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewAuthor.



220
221
222
# File 'generated/google/apis/factchecktools_v1alpha1/classes.rb', line 220

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

Instance Attribute Details

#image_urlString

Corresponds to ClaimReview.author.image. Corresponds to the JSON property imageUrl

Returns:

  • (String)


212
213
214
# File 'generated/google/apis/factchecktools_v1alpha1/classes.rb', line 212

def image_url
  @image_url
end

#nameString

Name of the organization that is publishing the fact check.
Corresponds to ClaimReview.author.name. Corresponds to the JSON property name

Returns:

  • (String)


218
219
220
# File 'generated/google/apis/factchecktools_v1alpha1/classes.rb', line 218

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



225
226
227
228
# File 'generated/google/apis/factchecktools_v1alpha1/classes.rb', line 225

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