Class: Google::Apis::CloudsearchV1::GridItem
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::GridItem
- 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
-
#identifier ⇒ String
A user-specified identifier for this grid item.
-
#image ⇒ Google::Apis::CloudsearchV1::ImageComponent
NOTE: Through future refactoring work, this image component will eventually be used in the Image widget, and will likely replace the Icon proto as well.
-
#layout ⇒ String
Corresponds to the JSON property
layout
. -
#subtitle ⇒ String
Corresponds to the JSON property
subtitle
. -
#text_alignment ⇒ String
Corresponds to the JSON property
textAlignment
. -
#title ⇒ String
Text properties.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GridItem
constructor
A new instance of GridItem.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GridItem
Returns a new instance of GridItem.
10716 10717 10718 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10716 def initialize(**args) update!(**args) end |
Instance Attribute Details
#identifier ⇒ String
A user-specified identifier for this grid item. This identifier will be
returned in the parent Grid's on_click callback's parameters.
Corresponds to the JSON property identifier
10688 10689 10690 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10688 def identifier @identifier end |
#image ⇒ Google::Apis::CloudsearchV1::ImageComponent
NOTE: Through future refactoring work, this image component will eventually be
used in the Image widget, and will likely replace the Icon proto as well.
Corresponds to the JSON property image
10694 10695 10696 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10694 def image @image end |
#layout ⇒ String
Corresponds to the JSON property layout
10699 10700 10701 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10699 def layout @layout end |
#subtitle ⇒ String
Corresponds to the JSON property subtitle
10704 10705 10706 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10704 def subtitle @subtitle end |
#text_alignment ⇒ String
Corresponds to the JSON property textAlignment
10709 10710 10711 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10709 def text_alignment @text_alignment end |
#title ⇒ String
Text properties.
Corresponds to the JSON property title
10714 10715 10716 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10714 def title @title end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
10721 10722 10723 10724 10725 10726 10727 10728 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10721 def update!(**args) @identifier = args[:identifier] if args.key?(:identifier) @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 |