Class: Google::Apis::CloudsearchV1::SpellResult

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/cloudsearch_v1/classes.rb,
generated/google/apis/cloudsearch_v1/representations.rb,
generated/google/apis/cloudsearch_v1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ SpellResult

Returns a new instance of SpellResult.



4511
4512
4513
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 4511

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

Instance Attribute Details

#suggested_queryString

The suggested spelling of the query. Corresponds to the JSON property suggestedQuery

Returns:

  • (String)


4509
4510
4511
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 4509

def suggested_query
  @suggested_query
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4516
4517
4518
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 4516

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