Class: Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1ClaimAuthor

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

Instance Method Summary collapse

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_urlString

Corresponds to ClaimReview.itemReviewed.author.image. Corresponds to the JSON property imageUrl

Returns:

  • (String)


69
70
71
# File 'lib/google/apis/factchecktools_v1alpha1/classes.rb', line 69

def image_url
  @image_url
end

#job_titleString

Corresponds to ClaimReview.itemReviewed.author.jobTitle. Corresponds to the JSON property jobTitle

Returns:

  • (String)


74
75
76
# File 'lib/google/apis/factchecktools_v1alpha1/classes.rb', line 74

def job_title
  @job_title
end

#nameString

A person or organization stating the claim. For instance, "John Doe". Corresponds to ClaimReview.itemReviewed.author.name. Corresponds to the JSON property name

Returns:

  • (String)


80
81
82
# File 'lib/google/apis/factchecktools_v1alpha1/classes.rb', line 80

def name
  @name
end

#same_asString

Corresponds to ClaimReview.itemReviewed.author.sameAs. Corresponds to the JSON property sameAs

Returns:

  • (String)


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