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.



1470
1471
1472
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 1470

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)


1463
1464
1465
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 1463

def display_name
  @display_name
end

#valueString

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

Returns:

  • (String)


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