Class: Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1Claim

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_dateString

The date that the claim was made. Corresponds to the JSON property claimDate

Returns:

  • (String)


32
33
34
# File 'generated/google/apis/factchecktools_v1alpha1/classes.rb', line 32

def claim_date
  @claim_date
end

#claim_reviewArray<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

#claimantString

A person or organization stating the claim. For instance, "John Doe". Corresponds to the JSON property claimant

Returns:

  • (String)


42
43
44
# File 'generated/google/apis/factchecktools_v1alpha1/classes.rb', line 42

def claimant
  @claimant
end

#textString

The claim text. For instance, "Crime has doubled in the last 2 years." Corresponds to the JSON property text

Returns:

  • (String)


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