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.



922
923
924
# File 'lib/google/apis/admin_reports_v1/classes.rb', line 922

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)


909
910
911
# File 'lib/google/apis/admin_reports_v1/classes.rb', line 909

def badged
  @badged
end

#display_nameString

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

Returns:

  • (String)


915
916
917
# File 'lib/google/apis/admin_reports_v1/classes.rb', line 915

def display_name
  @display_name
end

#idString

Identifier of the selection. Corresponds to the JSON property id

Returns:

  • (String)


920
921
922
# File 'lib/google/apis/admin_reports_v1/classes.rb', line 920

def id
  @id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



927
928
929
930
931
# File 'lib/google/apis/admin_reports_v1/classes.rb', line 927

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