Class: Google::Apis::JobsV4::SpellingCorrection
- Inherits:
-
Object
- Object
- Google::Apis::JobsV4::SpellingCorrection
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/jobs_v4/classes.rb,
generated/google/apis/jobs_v4/representations.rb,
generated/google/apis/jobs_v4/representations.rb
Overview
Spell check result.
Instance Attribute Summary collapse
-
#corrected ⇒ Boolean
(also: #corrected?)
Indicates if the query was corrected by the spell checker.
-
#corrected_html ⇒ String
Corrected output with html tags to highlight the corrected words.
-
#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.
2550 2551 2552 |
# File 'generated/google/apis/jobs_v4/classes.rb', line 2550 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
2533 2534 2535 |
# File 'generated/google/apis/jobs_v4/classes.rb', line 2533 def corrected @corrected end |
#corrected_html ⇒ String
Corrected output with html tags to highlight the corrected words. Corrected
words are called out with the "..." html tags. For example, the user input
query is "software enginear", where the second word, "enginear," is incorrect.
It should be "engineer". When spelling correction is enabled, this value is "
software engineer".
Corresponds to the JSON property correctedHtml
2543 2544 2545 |
# File 'generated/google/apis/jobs_v4/classes.rb', line 2543 def corrected_html @corrected_html end |
#corrected_text ⇒ String
Correction output consisting of the corrected keyword string.
Corresponds to the JSON property correctedText
2548 2549 2550 |
# File 'generated/google/apis/jobs_v4/classes.rb', line 2548 def corrected_text @corrected_text end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2555 2556 2557 2558 2559 |
# File 'generated/google/apis/jobs_v4/classes.rb', line 2555 def update!(**args) @corrected = args[:corrected] if args.key?(:corrected) @corrected_html = args[:corrected_html] if args.key?(:corrected_html) @corrected_text = args[:corrected_text] if args.key?(:corrected_text) end |