Class: Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1ClaimReview
- Inherits:
-
Object
- Object
- Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1ClaimReview
- 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 a claim review.
Instance Attribute Summary collapse
-
#language_code ⇒ String
The language this review was written in.
-
#publisher ⇒ Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1Publisher
Information about the publisher.
-
#review_date ⇒ String
The date the claim was reviewed.
-
#textual_rating ⇒ String
Textual rating.
-
#title ⇒ String
The title of this claim review, if it can be determined.
-
#url ⇒ String
The URL of this claim review.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleFactcheckingFactchecktoolsV1alpha1ClaimReview
constructor
A new instance of GoogleFactcheckingFactchecktoolsV1alpha1ClaimReview.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GoogleFactcheckingFactchecktoolsV1alpha1ClaimReview
Returns a new instance of GoogleFactcheckingFactchecktoolsV1alpha1ClaimReview.
190 191 192 |
# File 'generated/google/apis/factchecktools_v1alpha1/classes.rb', line 190 def initialize(**args) update!(**args) end |
Instance Attribute Details
#language_code ⇒ String
The language this review was written in. For instance, "en" or "de".
Corresponds to the JSON property languageCode
163 164 165 |
# File 'generated/google/apis/factchecktools_v1alpha1/classes.rb', line 163 def language_code @language_code end |
#publisher ⇒ Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1Publisher
Information about the publisher.
Corresponds to the JSON property publisher
168 169 170 |
# File 'generated/google/apis/factchecktools_v1alpha1/classes.rb', line 168 def publisher @publisher end |
#review_date ⇒ String
The date the claim was reviewed.
Corresponds to the JSON property reviewDate
173 174 175 |
# File 'generated/google/apis/factchecktools_v1alpha1/classes.rb', line 173 def review_date @review_date end |
#textual_rating ⇒ String
Textual rating. For instance, "Mostly false".
Corresponds to the JSON property textualRating
178 179 180 |
# File 'generated/google/apis/factchecktools_v1alpha1/classes.rb', line 178 def @textual_rating end |
#title ⇒ String
The title of this claim review, if it can be determined.
Corresponds to the JSON property title
183 184 185 |
# File 'generated/google/apis/factchecktools_v1alpha1/classes.rb', line 183 def title @title end |
#url ⇒ String
The URL of this claim review.
Corresponds to the JSON property url
188 189 190 |
# File 'generated/google/apis/factchecktools_v1alpha1/classes.rb', line 188 def url @url end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
195 196 197 198 199 200 201 202 |
# File 'generated/google/apis/factchecktools_v1alpha1/classes.rb', line 195 def update!(**args) @language_code = args[:language_code] if args.key?(:language_code) @publisher = args[:publisher] if args.key?(:publisher) @review_date = args[:review_date] if args.key?(:review_date) @textual_rating = args[:textual_rating] if args.key?(:textual_rating) @title = args[:title] if args.key?(:title) @url = args[:url] if args.key?(:url) end |