Class: Google::Apis::CloudsearchV1::Card

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

Returns a new instance of Card.



5290
5291
5292
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5290

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

Instance Attribute Details

#card_actionsArray<Google::Apis::CloudsearchV1::CardAction>

Corresponds to the JSON property cardActions



5256
5257
5258
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5256

def card_actions
  @card_actions
end

#display_styleString

Corresponds to the JSON property displayStyle

Returns:

  • (String)


5261
5262
5263
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5261

def display_style
  @display_style
end

A persistent (sticky) footer that is added to the bottom of the card. Corresponds to the JSON property fixedFooter



5266
5267
5268
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5266

def fixed_footer
  @fixed_footer
end

#headerGoogle::Apis::CloudsearchV1::CardHeader

Corresponds to the JSON property header



5271
5272
5273
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5271

def header
  @header
end

#nameString

Name of the card used in CardNavigation.pop_to_card_name. Corresponds to the JSON property name

Returns:

  • (String)


5276
5277
5278
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5276

def name
  @name
end

#peek_card_headerGoogle::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



5283
5284
5285
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5283

def peek_card_header
  @peek_card_header
end

#sectionsArray<Google::Apis::CloudsearchV1::Section>

Corresponds to the JSON property sections



5288
5289
5290
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5288

def sections
  @sections
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5295
5296
5297
5298
5299
5300
5301
5302
5303
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5295

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