Class: Google::Apis::DriveactivityV2::Selection

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_nameString

Selection value as human-readable display string. Corresponds to the JSON property displayName

Returns:

  • (String)


1467
1468
1469
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 1467

def display_name
  @display_name
end

#valueString

Selection value as Field Choice ID. Corresponds to the JSON property value

Returns:

  • (String)


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