Class: Google::Apis::CloudsearchV1::GridItem

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

Returns a new instance of GridItem.



10793
10794
10795
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10793

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

Instance Attribute Details

#identifierString

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

Returns:

  • (String)


10765
10766
10767
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10765

def identifier
  @identifier
end

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



10771
10772
10773
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10771

def image
  @image
end

#layoutString

Corresponds to the JSON property layout

Returns:

  • (String)


10776
10777
10778
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10776

def layout
  @layout
end

#subtitleString

Corresponds to the JSON property subtitle

Returns:

  • (String)


10781
10782
10783
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10781

def subtitle
  @subtitle
end

#text_alignmentString

Corresponds to the JSON property textAlignment

Returns:

  • (String)


10786
10787
10788
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10786

def text_alignment
  @text_alignment
end

#titleString

Text properties. Corresponds to the JSON property title

Returns:

  • (String)


10791
10792
10793
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10791

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10798
10799
10800
10801
10802
10803
10804
10805
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10798

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