Class: Google::Apis::CloudsearchV1::StructuredResult

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

Structured results that are returned as part of search request.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ StructuredResult

Returns a new instance of StructuredResult.



18973
18974
18975
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 18973

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

Instance Attribute Details

#personGoogle::Apis::CloudsearchV1::Person

Object to represent a person. Corresponds to the JSON property person



18971
18972
18973
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 18971

def person
  @person
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



18978
18979
18980
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 18978

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