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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewAuthor

Returns a new instance of GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewAuthor.



217
218
219
# File 'lib/google/apis/factchecktools_v1alpha1/classes.rb', line 217

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

Instance Attribute Details

#image_urlString

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

Returns:

  • (String)


209
210
211
# File 'lib/google/apis/factchecktools_v1alpha1/classes.rb', line 209

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)


215
216
217
# File 'lib/google/apis/factchecktools_v1alpha1/classes.rb', line 215

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



222
223
224
225
# File 'lib/google/apis/factchecktools_v1alpha1/classes.rb', line 222

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