Class: Google::Apis::TrafficdirectorV3::PathSegment
- Inherits:
-
Object
- Object
- Google::Apis::TrafficdirectorV3::PathSegment
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/trafficdirector_v3/classes.rb,
lib/google/apis/trafficdirector_v3/representations.rb,
lib/google/apis/trafficdirector_v3/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.
1122 1123 1124 |
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 1122 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
1120 1121 1122 |
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 1120 def key @key end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1127 1128 1129 |
# File 'lib/google/apis/trafficdirector_v3/classes.rb', line 1127 def update!(**args) @key = args[:key] if args.key?(:key) end |