Class: Google::Apis::CloudsearchV1::SelectionItem

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SelectionItem

Returns a new instance of SelectionItem.



17885
17886
17887
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17885

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

Instance Attribute Details

#selectedBoolean Also known as: selected?

If more than one items are selected for RADIO_BUTTON and DROPDOWN, the first selected item is treated as sElected and the after ones are all ignored. Corresponds to the JSON property selected

Returns:

  • (Boolean)


17871
17872
17873
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17871

def selected
  @selected
end

#textString

The text to be displayed. Corresponds to the JSON property text

Returns:

  • (String)


17877
17878
17879
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17877

def text
  @text
end

#valueString

The value associated with this item which will be sent back to app scripts. Client should use as a form input value. Corresponds to the JSON property value

Returns:

  • (String)


17883
17884
17885
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17883

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



17890
17891
17892
17893
17894
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17890

def update!(**args)
  @selected = args[:selected] if args.key?(:selected)
  @text = args[:text] if args.key?(:text)
  @value = args[:value] if args.key?(:value)
end