Class: Google::Apis::JobsV3p1beta1::SpellingCorrection

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

Overview

Output only. Spell check result.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ SpellingCorrection

Returns a new instance of SpellingCorrection.



2995
2996
2997
# File 'generated/google/apis/jobs_v3p1beta1/classes.rb', line 2995

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

Instance Attribute Details

#correctedBoolean Also known as: corrected?

Indicates if the query was corrected by the spell checker. Corresponds to the JSON property corrected

Returns:

  • (Boolean)


2987
2988
2989
# File 'generated/google/apis/jobs_v3p1beta1/classes.rb', line 2987

def corrected
  @corrected
end

#corrected_textString

Correction output consisting of the corrected keyword string. Corresponds to the JSON property correctedText

Returns:

  • (String)


2993
2994
2995
# File 'generated/google/apis/jobs_v3p1beta1/classes.rb', line 2993

def corrected_text
  @corrected_text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3000
3001
3002
3003
# File 'generated/google/apis/jobs_v3p1beta1/classes.rb', line 3000

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