Class: Google::Apis::CloudsearchV1::MenuItem
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::MenuItem
- 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
-
#selected ⇒ Boolean
(also: #selected?)
Corresponds to the JSON property
selected. -
#text ⇒ String
The text to be displayed.
-
#value ⇒ String
The value associated with this item which will be sent back to app scripts.
Instance Method Summary collapse
-
#initialize(**args) ⇒ MenuItem
constructor
A new instance of MenuItem.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ MenuItem
Returns a new instance of MenuItem.
11860 11861 11862 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 11860 def initialize(**args) update!(**args) end |
Instance Attribute Details
#selected ⇒ Boolean Also known as: selected?
Corresponds to the JSON property selected
11846 11847 11848 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 11846 def selected @selected end |
#text ⇒ String
The text to be displayed.
Corresponds to the JSON property text
11852 11853 11854 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 11852 def text @text end |
#value ⇒ String
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
11858 11859 11860 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 11858 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
11865 11866 11867 11868 11869 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 11865 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 |