Class: Google::Apis::CloudsearchV1::Toolbar

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

Overview

The Toolbar markup has been deprecated. The information is now specified in the manifest.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Toolbar

Returns a new instance of Toolbar.



20538
20539
20540
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 20538

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

Instance Attribute Details

#colorString

Background color of the toolbar in RBG hex representation. Corresponds to the JSON property color

Returns:

  • (String)


20526
20527
20528
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 20526

def color
  @color
end

#icon_urlString

Corresponds to the JSON property iconUrl

Returns:

  • (String)


20531
20532
20533
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 20531

def icon_url
  @icon_url
end

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


20536
20537
20538
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 20536

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



20543
20544
20545
20546
20547
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 20543

def update!(**args)
  @color = args[:color] if args.key?(:color)
  @icon_url = args[:icon_url] if args.key?(:icon_url)
  @name = args[:name] if args.key?(:name)
end