Class: Google::Apis::CloudsearchV1::MenuItem

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) ⇒ MenuItem

Returns a new instance of MenuItem.



13192
13193
13194
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13192

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

Instance Attribute Details

#selectedBoolean Also known as: selected?

Corresponds to the JSON property selected

Returns:

  • (Boolean)


13178
13179
13180
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13178

def selected
  @selected
end

#textString

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

Returns:

  • (String)


13184
13185
13186
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13184

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)


13190
13191
13192
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13190

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



13197
13198
13199
13200
13201
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13197

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