Class: Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1Publisher
- Inherits:
-
Object
- Object
- Google::Apis::FactchecktoolsV1alpha1::GoogleFactcheckingFactchecktoolsV1alpha1Publisher
- 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 publisher.
Instance Attribute Summary collapse
-
#name ⇒ String
The name of this publisher.
-
#site ⇒ String
Host-level site name, without the protocol or "www" prefix.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleFactcheckingFactchecktoolsV1alpha1Publisher
constructor
A new instance of GoogleFactcheckingFactchecktoolsV1alpha1Publisher.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleFactcheckingFactchecktoolsV1alpha1Publisher
Returns a new instance of GoogleFactcheckingFactchecktoolsV1alpha1Publisher.
471 472 473 |
# File 'lib/google/apis/factchecktools_v1alpha1/classes.rb', line 471 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
The name of this publisher. For instance, "Awesome Fact Checks".
Corresponds to the JSON property name
462 463 464 |
# File 'lib/google/apis/factchecktools_v1alpha1/classes.rb', line 462 def name @name end |
#site ⇒ String
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
469 470 471 |
# File 'lib/google/apis/factchecktools_v1alpha1/classes.rb', line 469 def site @site end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
476 477 478 479 |
# File 'lib/google/apis/factchecktools_v1alpha1/classes.rb', line 476 def update!(**args) @name = args[:name] if args.key?(:name) @site = args[:site] if args.key?(:site) end |