Class: Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1ClaimAuthor
- Inherits:
-
Object
- Object
- Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1ClaimAuthor
- 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 author.
Instance Attribute Summary collapse
-
#image_url ⇒ String
Corresponds to
ClaimReview.itemReviewed.author.image
. -
#job_title ⇒ String
Corresponds to
ClaimReview.itemReviewed.author.jobTitle
. -
#name ⇒ String
A person or organization stating the claim.
-
#same_as ⇒ String
Corresponds to
ClaimReview.itemReviewed.author.sameAs
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleFactcheckingFactchecktoolsV1alpha1ClaimAuthor
constructor
A new instance of GoogleFactcheckingFactchecktoolsV1alpha1ClaimAuthor.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleFactcheckingFactchecktoolsV1alpha1ClaimAuthor
Returns a new instance of GoogleFactcheckingFactchecktoolsV1alpha1ClaimAuthor.
87 88 89 |
# File 'lib/google/apis/factchecktools_v1alpha1/classes.rb', line 87 def initialize(**args) update!(**args) end |
Instance Attribute Details
#image_url ⇒ String
Corresponds to ClaimReview.itemReviewed.author.image
.
Corresponds to the JSON property imageUrl
69 70 71 |
# File 'lib/google/apis/factchecktools_v1alpha1/classes.rb', line 69 def image_url @image_url end |
#job_title ⇒ String
Corresponds to ClaimReview.itemReviewed.author.jobTitle
.
Corresponds to the JSON property jobTitle
74 75 76 |
# File 'lib/google/apis/factchecktools_v1alpha1/classes.rb', line 74 def job_title @job_title end |
#name ⇒ String
A person or organization stating the claim. For instance, "John Doe".
Corresponds to ClaimReview.itemReviewed.author.name
.
Corresponds to the JSON property name
80 81 82 |
# File 'lib/google/apis/factchecktools_v1alpha1/classes.rb', line 80 def name @name end |
#same_as ⇒ String
Corresponds to ClaimReview.itemReviewed.author.sameAs
.
Corresponds to the JSON property sameAs
85 86 87 |
# File 'lib/google/apis/factchecktools_v1alpha1/classes.rb', line 85 def same_as @same_as end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
92 93 94 95 96 97 |
# File 'lib/google/apis/factchecktools_v1alpha1/classes.rb', line 92 def update!(**args) @image_url = args[:image_url] if args.key?(:image_url) @job_title = args[:job_title] if args.key?(:job_title) @name = args[:name] if args.key?(:name) @same_as = args[:same_as] if args.key?(:same_as) end |