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.
Corresponds toClaimReview.author.name
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewAuthor
constructor
A new instance of GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewAuthor.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
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_url ⇒ String
Corresponds to ClaimReview.author.image
.
Corresponds to the JSON property imageUrl
212 213 214 |
# File 'generated/google/apis/factchecktools_v1alpha1/classes.rb', line 212 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
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 |