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.
1474 1475 1476 |
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 1474 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
1467 1468 1469 |
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 1467 def display_name @display_name end |
#value ⇒ String
Selection value as Field Choice ID.
Corresponds to the JSON property value
1472 1473 1474 |
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 1472 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1479 1480 1481 1482 |
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 1479 def update!(**args) @display_name = args[:display_name] if args.key?(:display_name) @value = args[:value] if args.key?(:value) end |