Class: Google::Apis::TagmanagerV2::TeardownTag
- Inherits:
-
Object
- Object
- Google::Apis::TagmanagerV2::TeardownTag
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/tagmanager_v2/classes.rb,
generated/google/apis/tagmanager_v2/representations.rb,
generated/google/apis/tagmanager_v2/representations.rb
Overview
Represents a tag that fires after another tag in order to tear down dependencies.
Instance Attribute Summary collapse
-
#stop_teardown_on_failure ⇒ Boolean
(also: #stop_teardown_on_failure?)
If true, fire the teardown tag if and only if the main tag fires successfully.
-
#tag_name ⇒ String
The name of the teardown tag.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TeardownTag
constructor
A new instance of TeardownTag.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TeardownTag
Returns a new instance of TeardownTag.
2046 2047 2048 |
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 2046 def initialize(**args) update!(**args) end |
Instance Attribute Details
#stop_teardown_on_failure ⇒ Boolean Also known as: stop_teardown_on_failure?
If true, fire the teardown tag if and only if the main tag fires successfully.
If false, fire the teardown tag regardless of main tag firing status.
Corresponds to the JSON property stopTeardownOnFailure
2038 2039 2040 |
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 2038 def stop_teardown_on_failure @stop_teardown_on_failure end |
#tag_name ⇒ String
The name of the teardown tag.
Corresponds to the JSON property tagName
2044 2045 2046 |
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 2044 def tag_name @tag_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2051 2052 2053 2054 |
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 2051 def update!(**args) @stop_teardown_on_failure = args[:stop_teardown_on_failure] if args.key?(:stop_teardown_on_failure) @tag_name = args[:tag_name] if args.key?(:tag_name) end |