Class: Google::Apis::DriveactivityV2::Selection
- Inherits:
-
Object
- Object
- Google::Apis::DriveactivityV2::Selection
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/driveactivity_v2/classes.rb,
lib/google/apis/driveactivity_v2/representations.rb,
lib/google/apis/driveactivity_v2/representations.rb
Overview
Wrapper for Selection Field value as combined value/display_name pair for selected choice.
Instance Attribute Summary collapse
-
#display_name ⇒ String
Selection value as human-readable display string.
-
#value ⇒ String
Selection value as Field Choice ID.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Selection
constructor
A new instance of Selection.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Selection
Returns a new instance of Selection.
1470 1471 1472 |
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 1470 def initialize(**args) update!(**args) end |
Instance Attribute Details
#display_name ⇒ String
Selection value as human-readable display string.
Corresponds to the JSON property displayName
1463 1464 1465 |
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 1463 def display_name @display_name end |
#value ⇒ String
Selection value as Field Choice ID.
Corresponds to the JSON property value
1468 1469 1470 |
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 1468 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1475 1476 1477 1478 |
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 1475 def update!(**args) @display_name = args[:display_name] if args.key?(:display_name) @value = args[:value] if args.key?(:value) end |