Class: Google::Apis::AdminReportsV1::FieldValueSelectionValue

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/admin_reports_v1/classes.rb,
lib/google/apis/admin_reports_v1/representations.rb,
lib/google/apis/admin_reports_v1/representations.rb

Overview

Setting a selection value by selecting a single value from a dropdown.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ FieldValueSelectionValue

Returns a new instance of FieldValueSelectionValue.



1028
1029
1030
# File 'lib/google/apis/admin_reports_v1/classes.rb', line 1028

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#badgedBoolean Also known as: badged?

Whether the selection is badged. Corresponds to the JSON property badged

Returns:

  • (Boolean)


1015
1016
1017
# File 'lib/google/apis/admin_reports_v1/classes.rb', line 1015

def badged
  @badged
end

#display_nameString

Display name of the selection. Corresponds to the JSON property displayName

Returns:

  • (String)


1021
1022
1023
# File 'lib/google/apis/admin_reports_v1/classes.rb', line 1021

def display_name
  @display_name
end

#idString

Identifier of the selection. Corresponds to the JSON property id

Returns:

  • (String)


1026
1027
1028
# File 'lib/google/apis/admin_reports_v1/classes.rb', line 1026

def id
  @id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1033
1034
1035
1036
1037
# File 'lib/google/apis/admin_reports_v1/classes.rb', line 1033

def update!(**args)
  @badged = args[:badged] if args.key?(:badged)
  @display_name = args[:display_name] if args.key?(:display_name)
  @id = args[:id] if args.key?(:id)
end