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.



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

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

Instance Attribute Details

#topicGoogle::Apis::FormsV1::CloudPubsubTopic

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



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

def topic
  @topic
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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