Class: Google::Apis::CloudsearchV1::AppsDynamiteStorageGridGridItem

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

Overview

Represents a single item in the grid layout.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AppsDynamiteStorageGridGridItem

Returns a new instance of AppsDynamiteStorageGridGridItem.



3214
3215
3216
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3214

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

Instance Attribute Details

#idString

A user-specified identifier for this grid item. This identifier is returned in the parent Grid's onClick callback parameters. Corresponds to the JSON property id

Returns:

  • (String)


3187
3188
3189
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3187

def id
  @id
end

#imageGoogle::Apis::CloudsearchV1::AppsDynamiteStorageImageComponent

The image that displays in the grid item. Corresponds to the JSON property image



3192
3193
3194
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3192

def image
  @image
end

#layoutString

The layout to use for the grid item. Corresponds to the JSON property layout

Returns:

  • (String)


3197
3198
3199
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3197

def layout
  @layout
end

#subtitleString

The grid item's subtitle. Corresponds to the JSON property subtitle

Returns:

  • (String)


3202
3203
3204
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3202

def subtitle
  @subtitle
end

#text_alignmentString

The horizontal alignment of the grid item's text. Corresponds to the JSON property textAlignment

Returns:

  • (String)


3207
3208
3209
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3207

def text_alignment
  @text_alignment
end

#titleString

The grid item's title. Corresponds to the JSON property title

Returns:

  • (String)


3212
3213
3214
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3212

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3219
3220
3221
3222
3223
3224
3225
3226
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3219

def update!(**args)
  @id = args[:id] if args.key?(:id)
  @image = args[:image] if args.key?(:image)
  @layout = args[:layout] if args.key?(:layout)
  @subtitle = args[:subtitle] if args.key?(:subtitle)
  @text_alignment = args[:text_alignment] if args.key?(:text_alignment)
  @title = args[:title] if args.key?(:title)
end