Class: Google::Apis::CloudsearchV1::Metaline
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::Metaline
- 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
-
#properties ⇒ Array<Google::Apis::CloudsearchV1::DisplayedProperty>
The list of displayed properties for the metaline.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Metaline
constructor
A new instance of Metaline.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Metaline
Returns a new instance of Metaline.
4864 4865 4866 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4864 def initialize(**args) update!(**args) end |
Instance Attribute Details
#properties ⇒ Array<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
4862 4863 4864 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4862 def properties @properties end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4869 4870 4871 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4869 def update!(**args) @properties = args[:properties] if args.key?(:properties) end |