Class: Google::Apis::CloudsearchV1::AppsDynamiteStorageGridGridItem
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::AppsDynamiteStorageGridGridItem
- 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
-
#id ⇒ String
A user-specified identifier for this grid item.
-
#image ⇒ Google::Apis::CloudsearchV1::AppsDynamiteStorageImageComponent
The image that displays in the grid item.
-
#layout ⇒ String
The layout to use for the grid item.
-
#subtitle ⇒ String
The grid item's subtitle.
-
#text_alignment ⇒ String
The horizontal alignment of the grid item's text.
-
#title ⇒ String
The grid item's title.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AppsDynamiteStorageGridGridItem
constructor
A new instance of AppsDynamiteStorageGridGridItem.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AppsDynamiteStorageGridGridItem
Returns a new instance of AppsDynamiteStorageGridGridItem.
3470 3471 3472 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3470 def initialize(**args) update!(**args) end |
Instance Attribute Details
#id ⇒ String
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
3443 3444 3445 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3443 def id @id end |
#image ⇒ Google::Apis::CloudsearchV1::AppsDynamiteStorageImageComponent
The image that displays in the grid item.
Corresponds to the JSON property image
3448 3449 3450 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3448 def image @image end |
#layout ⇒ String
The layout to use for the grid item.
Corresponds to the JSON property layout
3453 3454 3455 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3453 def layout @layout end |
#subtitle ⇒ String
The grid item's subtitle.
Corresponds to the JSON property subtitle
3458 3459 3460 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3458 def subtitle @subtitle end |
#text_alignment ⇒ String
The horizontal alignment of the grid item's text.
Corresponds to the JSON property textAlignment
3463 3464 3465 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3463 def text_alignment @text_alignment end |
#title ⇒ String
The grid item's title.
Corresponds to the JSON property title
3468 3469 3470 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3468 def title @title end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3475 3476 3477 3478 3479 3480 3481 3482 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3475 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 |