Class: Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1Publisher

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 publisher.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GoogleFactcheckingFactchecktoolsV1alpha1Publisher

Returns a new instance of GoogleFactcheckingFactchecktoolsV1alpha1Publisher.



434
435
436
# File 'generated/google/apis/factchecktools_v1alpha1/classes.rb', line 434

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#nameString

The name of this publisher. For instance, "Awesome Fact Checks". Corresponds to the JSON property name

Returns:

  • (String)


425
426
427
# File 'generated/google/apis/factchecktools_v1alpha1/classes.rb', line 425

def name
  @name
end

#siteString

Host-level site name, without the protocol or "www" prefix. For instance, "awesomefactchecks.com". This value of this field is based purely on the claim review URL. Corresponds to the JSON property site

Returns:

  • (String)


432
433
434
# File 'generated/google/apis/factchecktools_v1alpha1/classes.rb', line 432

def site
  @site
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



439
440
441
442
# File 'generated/google/apis/factchecktools_v1alpha1/classes.rb', line 439

def update!(**args)
  @name = args[:name] if args.key?(:name)
  @site = args[:site] if args.key?(:site)
end