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.



791
792
793
# File 'lib/google/apis/admin_reports_v1/classes.rb', line 791

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)


778
779
780
# File 'lib/google/apis/admin_reports_v1/classes.rb', line 778

def badged
  @badged
end

#display_nameString

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

Returns:

  • (String)


784
785
786
# File 'lib/google/apis/admin_reports_v1/classes.rb', line 784

def display_name
  @display_name
end

#idString

Identifier of the selection. Corresponds to the JSON property id

Returns:

  • (String)


789
790
791
# File 'lib/google/apis/admin_reports_v1/classes.rb', line 789

def id
  @id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



796
797
798
799
800
# File 'lib/google/apis/admin_reports_v1/classes.rb', line 796

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