Class: Google::Apis::FormsV1::WatchTarget

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/forms_v1/classes.rb,
lib/google/apis/forms_v1/representations.rb,
lib/google/apis/forms_v1/representations.rb

Overview

The target for notification delivery.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ WatchTarget

Returns a new instance of WatchTarget.



1773
1774
1775
# File 'lib/google/apis/forms_v1/classes.rb', line 1773

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

Instance Attribute Details

#topicGoogle::Apis::FormsV1::CloudPubsubTopic

A Pub/Sub topic. Corresponds to the JSON property topic



1771
1772
1773
# File 'lib/google/apis/forms_v1/classes.rb', line 1771

def topic
  @topic
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1778
1779
1780
# File 'lib/google/apis/forms_v1/classes.rb', line 1778

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