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

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

Returns a new instance of SpellResult.



4586
4587
4588
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4586

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)


4584
4585
4586
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4584

def suggested_query
  @suggested_query
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4591
4592
4593
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4591

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