Class: Google::Apis::CloudsearchV1::RewrittenQuery
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::RewrittenQuery
- 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
-
#rewritten_query ⇒ String
Corresponds to the JSON property
rewrittenQuery
. -
#score ⇒ Float
Corresponds to the JSON property
score
. -
#sort_by ⇒ String
Corresponds to the JSON property
sortBy
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RewrittenQuery
constructor
A new instance of RewrittenQuery.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RewrittenQuery
Returns a new instance of RewrittenQuery.
6735 6736 6737 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6735 def initialize(**args) update!(**args) end |
Instance Attribute Details
#rewritten_query ⇒ String
Corresponds to the JSON property rewrittenQuery
6723 6724 6725 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6723 def rewritten_query @rewritten_query end |
#score ⇒ Float
Corresponds to the JSON property score
6728 6729 6730 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6728 def score @score end |
#sort_by ⇒ String
Corresponds to the JSON property sortBy
6733 6734 6735 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6733 def sort_by @sort_by end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6740 6741 6742 6743 6744 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6740 def update!(**args) @rewritten_query = args[:rewritten_query] if args.key?(:rewritten_query) @score = args[:score] if args.key?(:score) @sort_by = args[:sort_by] if args.key?(:sort_by) end |