Class: Google::Apis::TrafficdirectorV2::PathSegment
- Inherits:
-
Object
- Object
- Google::Apis::TrafficdirectorV2::PathSegment
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/trafficdirector_v2/classes.rb,
generated/google/apis/trafficdirector_v2/representations.rb,
generated/google/apis/trafficdirector_v2/representations.rb
Overview
Specifies the segment in a path to retrieve value from Struct.
Instance Attribute Summary collapse
-
#key ⇒ String
If specified, use the key to retrieve the value in a Struct.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PathSegment
constructor
A new instance of PathSegment.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PathSegment
Returns a new instance of PathSegment.
791 792 793 |
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 791 def initialize(**args) update!(**args) end |
Instance Attribute Details
#key ⇒ String
If specified, use the key to retrieve the value in a Struct.
Corresponds to the JSON property key
789 790 791 |
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 789 def key @key end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
796 797 798 |
# File 'generated/google/apis/trafficdirector_v2/classes.rb', line 796 def update!(**args) @key = args[:key] if args.key?(:key) end |