Class: Google::Apis::CloudsearchV1::Metaline

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

A metaline is a list of properties that are displayed along with the search result to provide context.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Metaline

Returns a new instance of Metaline.



14456
14457
14458
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 14456

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

Instance Attribute Details

#propertiesArray<Google::Apis::CloudsearchV1::DisplayedProperty>

The list of displayed properties for the metaline. The maximum number of properties is 5. Corresponds to the JSON property properties



14454
14455
14456
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 14454

def properties
  @properties
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



14461
14462
14463
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 14461

def update!(**args)
  @properties = args[:properties] if args.key?(:properties)
end