Class: AWSCloudSearch::SearchRequest
- Inherits:
-
Object
- Object
- AWSCloudSearch::SearchRequest
- Defined in:
- lib/aws_cloud_search/search_request.rb
Instance Attribute Summary collapse
-
#bq ⇒ Object
Returns the value of attribute bq.
-
#q ⇒ Object
Returns the value of attribute q.
-
#rank ⇒ Object
Returns the value of attribute rank.
-
#results_type ⇒ Object
Returns the value of attribute results_type.
-
#return_fields ⇒ Object
Returns the value of attribute return_fields.
-
#size ⇒ Object
Returns the value of attribute size.
-
#start ⇒ Object
Returns the value of attribute start.
Instance Method Summary collapse
Instance Attribute Details
#bq ⇒ Object
Returns the value of attribute bq.
4 5 6 |
# File 'lib/aws_cloud_search/search_request.rb', line 4 def bq @bq end |
#q ⇒ Object
Returns the value of attribute q.
4 5 6 |
# File 'lib/aws_cloud_search/search_request.rb', line 4 def q @q end |
#rank ⇒ Object
Returns the value of attribute rank.
4 5 6 |
# File 'lib/aws_cloud_search/search_request.rb', line 4 def rank @rank end |
#results_type ⇒ Object
Returns the value of attribute results_type.
4 5 6 |
# File 'lib/aws_cloud_search/search_request.rb', line 4 def results_type @results_type end |
#return_fields ⇒ Object
Returns the value of attribute return_fields.
4 5 6 |
# File 'lib/aws_cloud_search/search_request.rb', line 4 def return_fields @return_fields end |
#size ⇒ Object
Returns the value of attribute size.
4 5 6 |
# File 'lib/aws_cloud_search/search_request.rb', line 4 def size @size end |
#start ⇒ Object
Returns the value of attribute start.
4 5 6 |
# File 'lib/aws_cloud_search/search_request.rb', line 4 def start @start end |
Instance Method Details
#to_hash ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/aws_cloud_search/search_request.rb', line 6 def to_hash hash = {} hash['q'] = @q unless @q.nil? hash['bq'] = @bq unless @bq.nil? hash['rank'] = @rank unless @rank.nil? hash['size'] = @size unless @size.nil? hash['start'] = @start unless @start.nil? hash['results-type'] = @results_type unless @results_type.nil? hash['return-fields'] = @return_fields.join(',') unless @return_fields.nil? hash end |