Class: Google::Apis::CloudsearchV1::Card
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::Card
- 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
-
#card_actions ⇒ Array<Google::Apis::CloudsearchV1::CardAction>
Corresponds to the JSON property
cardActions. -
#display_style ⇒ String
Corresponds to the JSON property
displayStyle. -
#fixed_footer ⇒ Google::Apis::CloudsearchV1::FixedFooter
A persistent (sticky) footer that is added to the bottom of the card.
-
#header ⇒ Google::Apis::CloudsearchV1::CardHeader
Corresponds to the JSON property
header. -
#name ⇒ String
Name of the card used in CardNavigation.pop_to_card_name.
-
#peek_card_header ⇒ Google::Apis::CloudsearchV1::CardHeader
When displaying contextual content, the peek card header acts as a placeholder so that the user can navigate forward between the homepage cards and the contextual cards.
-
#sections ⇒ Array<Google::Apis::CloudsearchV1::Section>
Corresponds to the JSON property
sections.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Card
constructor
A new instance of Card.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Card
Returns a new instance of Card.
5438 5439 5440 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5438 def initialize(**args) update!(**args) end |
Instance Attribute Details
#card_actions ⇒ Array<Google::Apis::CloudsearchV1::CardAction>
Corresponds to the JSON property cardActions
5404 5405 5406 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5404 def card_actions @card_actions end |
#display_style ⇒ String
Corresponds to the JSON property displayStyle
5409 5410 5411 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5409 def display_style @display_style end |
#fixed_footer ⇒ Google::Apis::CloudsearchV1::FixedFooter
A persistent (sticky) footer that is added to the bottom of the card.
Corresponds to the JSON property fixedFooter
5414 5415 5416 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5414 def @fixed_footer end |
#header ⇒ Google::Apis::CloudsearchV1::CardHeader
Corresponds to the JSON property header
5419 5420 5421 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5419 def header @header end |
#name ⇒ String
Name of the card used in CardNavigation.pop_to_card_name.
Corresponds to the JSON property name
5424 5425 5426 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5424 def name @name end |
#peek_card_header ⇒ Google::Apis::CloudsearchV1::CardHeader
When displaying contextual content, the peek card header acts as a placeholder
so that the user can navigate forward between the homepage cards and the
contextual cards.
Corresponds to the JSON property peekCardHeader
5431 5432 5433 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5431 def peek_card_header @peek_card_header end |
#sections ⇒ Array<Google::Apis::CloudsearchV1::Section>
Corresponds to the JSON property sections
5436 5437 5438 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5436 def sections @sections end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5443 5444 5445 5446 5447 5448 5449 5450 5451 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5443 def update!(**args) @card_actions = args[:card_actions] if args.key?(:card_actions) @display_style = args[:display_style] if args.key?(:display_style) @fixed_footer = args[:fixed_footer] if args.key?(:fixed_footer) @header = args[:header] if args.key?(:header) @name = args[:name] if args.key?(:name) @peek_card_header = args[:peek_card_header] if args.key?(:peek_card_header) @sections = args[:sections] if args.key?(:sections) end |