Class: Google::Apis::CloudsearchV1::CardHeader
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::CardHeader
- 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
-
#image_alt_text ⇒ String
The alternative text of this image which will be used for accessibility.
-
#image_style ⇒ String
Corresponds to the JSON property
imageStyle. -
#image_url ⇒ String
Corresponds to the JSON property
imageUrl. -
#subtitle ⇒ String
Corresponds to the JSON property
subtitle. -
#title ⇒ String
The title must be specified.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CardHeader
constructor
A new instance of CardHeader.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CardHeader
Returns a new instance of CardHeader.
4976 4977 4978 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4976 def initialize(**args) update!(**args) end |
Instance Attribute Details
#image_alt_text ⇒ String
The alternative text of this image which will be used for accessibility.
Corresponds to the JSON property imageAltText
4951 4952 4953 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4951 def image_alt_text @image_alt_text end |
#image_style ⇒ String
Corresponds to the JSON property imageStyle
4956 4957 4958 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4956 def image_style @image_style end |
#image_url ⇒ String
Corresponds to the JSON property imageUrl
4961 4962 4963 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4961 def image_url @image_url end |
#subtitle ⇒ String
Corresponds to the JSON property subtitle
4966 4967 4968 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4966 def subtitle @subtitle end |
#title ⇒ String
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
4974 4975 4976 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4974 def title @title end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4981 4982 4983 4984 4985 4986 4987 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4981 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 |