Class: Google::Apis::JobsV3p1beta1::SpellingCorrection
- Inherits:
-
Object
- Object
- Google::Apis::JobsV3p1beta1::SpellingCorrection
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/jobs_v3p1beta1/classes.rb,
lib/google/apis/jobs_v3p1beta1/representations.rb,
lib/google/apis/jobs_v3p1beta1/representations.rb
Overview
Output only. Spell check result.
Instance Attribute Summary collapse
-
#corrected ⇒ Boolean
(also: #corrected?)
Indicates if the query was corrected by the spell checker.
-
#corrected_text ⇒ String
Correction output consisting of the corrected keyword string.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SpellingCorrection
constructor
A new instance of SpellingCorrection.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SpellingCorrection
Returns a new instance of SpellingCorrection.
2777 2778 2779 |
# File 'lib/google/apis/jobs_v3p1beta1/classes.rb', line 2777 def initialize(**args) update!(**args) end |
Instance Attribute Details
#corrected ⇒ Boolean Also known as: corrected?
Indicates if the query was corrected by the spell checker.
Corresponds to the JSON property corrected
2769 2770 2771 |
# File 'lib/google/apis/jobs_v3p1beta1/classes.rb', line 2769 def corrected @corrected end |
#corrected_text ⇒ String
Correction output consisting of the corrected keyword string.
Corresponds to the JSON property correctedText
2775 2776 2777 |
# File 'lib/google/apis/jobs_v3p1beta1/classes.rb', line 2775 def corrected_text @corrected_text end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2782 2783 2784 2785 |
# File 'lib/google/apis/jobs_v3p1beta1/classes.rb', line 2782 def update!(**args) @corrected = args[:corrected] if args.key?(:corrected) @corrected_text = args[:corrected_text] if args.key?(:corrected_text) end |