Class: Google::Apis::CloudsearchV1::ImageButton

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

Returns a new instance of ImageButton.



9581
9582
9583
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 9581

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

Instance Attribute Details

#iconString

Corresponds to the JSON property icon

Returns:

  • (String)


9564
9565
9566
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 9564

def icon
  @icon
end

#icon_urlString

Corresponds to the JSON property iconUrl

Returns:

  • (String)


9569
9570
9571
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 9569

def icon_url
  @icon_url
end

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


9574
9575
9576
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 9574

def name
  @name
end

#on_clickGoogle::Apis::CloudsearchV1::OnClick

Corresponds to the JSON property onClick



9579
9580
9581
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 9579

def on_click
  @on_click
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9586
9587
9588
9589
9590
9591
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 9586

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