Class: Google::Apis::ChatV1::CardHeader

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/chat_v1/classes.rb,
lib/google/apis/chat_v1/representations.rb,
lib/google/apis/chat_v1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CardHeader

Returns a new instance of CardHeader.



373
374
375
# File 'lib/google/apis/chat_v1/classes.rb', line 373

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

Instance Attribute Details

#image_styleString

The image's type (for example, square border or circular border). Corresponds to the JSON property imageStyle

Returns:

  • (String)


354
355
356
# File 'lib/google/apis/chat_v1/classes.rb', line 354

def image_style
  @image_style
end

#image_urlString

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

Returns:

  • (String)


359
360
361
# File 'lib/google/apis/chat_v1/classes.rb', line 359

def image_url
  @image_url
end

#subtitleString

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

Returns:

  • (String)


364
365
366
# File 'lib/google/apis/chat_v1/classes.rb', line 364

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 takes up one line. If only the title is specified, it takes up both lines. Corresponds to the JSON property title

Returns:

  • (String)


371
372
373
# File 'lib/google/apis/chat_v1/classes.rb', line 371

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



378
379
380
381
382
383
# File 'lib/google/apis/chat_v1/classes.rb', line 378

def update!(**args)
  @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