Class: Google::Apis::CloudsearchV1::CardHeader

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

Returns a new instance of CardHeader.



5532
5533
5534
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5532

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

Instance Attribute Details

#image_alt_textString

The alternative text of this image which will be used for accessibility. Corresponds to the JSON property imageAltText

Returns:

  • (String)


5507
5508
5509
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5507

def image_alt_text
  @image_alt_text
end

#image_styleString

Corresponds to the JSON property imageStyle

Returns:

  • (String)


5512
5513
5514
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5512

def image_style
  @image_style
end

#image_urlString

Corresponds to the JSON property imageUrl

Returns:

  • (String)


5517
5518
5519
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5517

def image_url
  @image_url
end

#subtitleString

Corresponds to the JSON property subtitle

Returns:

  • (String)


5522
5523
5524
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5522

def subtitle
  @subtitle
end

#titleString

The title must be specified. The header has a fixed height: if both a title and subtitle is specified, each will take up 1 line. If only the title is specified, it will take up both lines. The header is rendered in collapsed and detailed view. Corresponds to the JSON property title

Returns:

  • (String)


5530
5531
5532
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5530

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5537
5538
5539
5540
5541
5542
5543
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5537

def update!(**args)
  @image_alt_text = args[:image_alt_text] if args.key?(:image_alt_text)
  @image_style = args[:image_style] if args.key?(:image_style)
  @image_url = args[:image_url] if args.key?(:image_url)
  @subtitle = args[:subtitle] if args.key?(:subtitle)
  @title = args[:title] if args.key?(:title)
end