Class: Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1Claim
- Inherits:
-
Object
- Object
- Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1Claim
- 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.
Instance Attribute Summary collapse
-
#claim_date ⇒ String
The date that the claim was made.
-
#claim_review ⇒ Array<Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1ClaimReview>
One or more reviews of this claim (namely, a fact-checking article).
-
#claimant ⇒ String
A person or organization stating the claim.
-
#text ⇒ String
The claim text.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleFactcheckingFactchecktoolsV1alpha1Claim
constructor
A new instance of GoogleFactcheckingFactchecktoolsV1alpha1Claim.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleFactcheckingFactchecktoolsV1alpha1Claim
Returns a new instance of GoogleFactcheckingFactchecktoolsV1alpha1Claim.
49 50 51 |
# File 'generated/google/apis/factchecktools_v1alpha1/classes.rb', line 49 def initialize(**args) update!(**args) end |
Instance Attribute Details
#claim_date ⇒ String
The date that the claim was made.
Corresponds to the JSON property claimDate
32 33 34 |
# File 'generated/google/apis/factchecktools_v1alpha1/classes.rb', line 32 def claim_date @claim_date end |
#claim_review ⇒ Array<Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1ClaimReview>
One or more reviews of this claim (namely, a fact-checking article).
Corresponds to the JSON property claimReview
37 38 39 |
# File 'generated/google/apis/factchecktools_v1alpha1/classes.rb', line 37 def claim_review @claim_review end |
#claimant ⇒ String
A person or organization stating the claim. For instance, "John Doe".
Corresponds to the JSON property claimant
42 43 44 |
# File 'generated/google/apis/factchecktools_v1alpha1/classes.rb', line 42 def claimant @claimant end |
#text ⇒ String
The claim text. For instance, "Crime has doubled in the last 2 years."
Corresponds to the JSON property text
47 48 49 |
# File 'generated/google/apis/factchecktools_v1alpha1/classes.rb', line 47 def text @text end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
54 55 56 57 58 59 |
# File 'generated/google/apis/factchecktools_v1alpha1/classes.rb', line 54 def update!(**args) @claim_date = args[:claim_date] if args.key?(:claim_date) @claim_review = args[:claim_review] if args.key?(:claim_review) @claimant = args[:claimant] if args.key?(:claimant) @text = args[:text] if args.key?(:text) end |