Class: Google::Apis::CloudsearchV1::AppsDynamiteStorageCardCardHeader

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

Returns a new instance of AppsDynamiteStorageCardCardHeader.



2804
2805
2806
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2804

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

Instance Attribute Details

#image_alt_textString

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

Returns:

  • (String)


2780
2781
2782
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2780

def image_alt_text
  @image_alt_text
end

#image_typeString

The image's type. Corresponds to the JSON property imageType

Returns:

  • (String)


2785
2786
2787
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2785

def image_type
  @image_type
end

#image_urlString

The URL of the image in the card header. Corresponds to the JSON property imageUrl

Returns:

  • (String)


2790
2791
2792
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2790

def image_url
  @image_url
end

#subtitleString

The subtitle of the card header. Corresponds to the JSON property subtitle

Returns:

  • (String)


2795
2796
2797
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2795

def subtitle
  @subtitle
end

#titleString

The title of the card header. The title must be specified. The header has a fixed height: if both a title and subtitle are specified, each takes up one line. If only the title is specified, it takes up both lines. Corresponds to the JSON property title

Returns:

  • (String)


2802
2803
2804
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2802

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2809
2810
2811
2812
2813
2814
2815
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2809

def update!(**args)
  @image_alt_text = args[:image_alt_text] if args.key?(:image_alt_text)
  @image_type = args[:image_type] if args.key?(:image_type)
  @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