Class: Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewAuthor
- Inherits:
-
Object
- Object
- Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewAuthor
- 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
-
#image_url ⇒ String
Corresponds to
ClaimReview.author.image
. -
#name ⇒ String
Name of the organization that is publishing the fact check.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewAuthor
constructor
A new instance of GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewAuthor.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewAuthor
Returns a new instance of GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewAuthor.
217 218 219 |
# File 'generated/google/apis/factchecktools_v1alpha1/classes.rb', line 217 def initialize(**args) update!(**args) end |
Instance Attribute Details
#image_url ⇒ String
Corresponds to ClaimReview.author.image
.
Corresponds to the JSON property imageUrl
209 210 211 |
# File 'generated/google/apis/factchecktools_v1alpha1/classes.rb', line 209 def image_url @image_url end |
#name ⇒ String
Name of the organization that is publishing the fact check. Corresponds to
ClaimReview.author.name
.
Corresponds to the JSON property name
215 216 217 |
# File 'generated/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 'generated/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 |