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.
6702 6703 6704 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6702 def initialize(**args) update!(**args) end |
Instance Attribute Details
#rewritten_query ⇒ String
Corresponds to the JSON property rewrittenQuery
6690 6691 6692 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6690 def rewritten_query @rewritten_query end |
#score ⇒ Float
Corresponds to the JSON property score
6695 6696 6697 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6695 def score @score end |
#sort_by ⇒ String
Corresponds to the JSON property sortBy
6700 6701 6702 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6700 def sort_by @sort_by end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6707 6708 6709 6710 6711 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6707 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 |