Class: Google::Apis::JobsV3::SpellingCorrection

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

Overview

Output only. Spell check result.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SpellingCorrection

Returns a new instance of SpellingCorrection.



2513
2514
2515
# File 'lib/google/apis/jobs_v3/classes.rb', line 2513

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)


2505
2506
2507
# File 'lib/google/apis/jobs_v3/classes.rb', line 2505

def corrected
  @corrected
end

#corrected_textString

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

Returns:

  • (String)


2511
2512
2513
# File 'lib/google/apis/jobs_v3/classes.rb', line 2511

def corrected_text
  @corrected_text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2518
2519
2520
2521
# File 'lib/google/apis/jobs_v3/classes.rb', line 2518

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