Class: RubyPtvApi::Operation::XLocate::FindSuggestion
- Defined in:
- lib/ruby_ptv_api/operation/x_locate/find_suggestion.rb
Instance Attribute Summary collapse
-
#country ⇒ Object
readonly
Returns the value of attribute country.
-
#state ⇒ Object
readonly
Returns the value of attribute state.
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Attributes inherited from Base
#result_field_array, #search_option_base_array, #sort_option_array
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(text:, country: "", state: "") ⇒ FindSuggestion
constructor
A new instance of FindSuggestion.
- #params ⇒ Object
- #ptv_function ⇒ Object
Methods inherited from Base
#additional_fields, #additional_fields=, #call, #extra_params, #options, #options=, #ptv_path, #sorting, #sorting=
Methods inherited from Base
#connection, #default_params, #demodulize, #demodulized_name, #endpoint, #parent_module_name, #post, #ptv_path, #underscore, #uri
Constructor Details
#initialize(text:, country: "", state: "") ⇒ FindSuggestion
Returns a new instance of FindSuggestion.
7 8 9 10 11 |
# File 'lib/ruby_ptv_api/operation/x_locate/find_suggestion.rb', line 7 def initialize(text:, country: "", state: "") @text = text @country = country @state = state end |
Instance Attribute Details
#country ⇒ Object (readonly)
Returns the value of attribute country.
5 6 7 |
# File 'lib/ruby_ptv_api/operation/x_locate/find_suggestion.rb', line 5 def country @country end |
#state ⇒ Object (readonly)
Returns the value of attribute state.
5 6 7 |
# File 'lib/ruby_ptv_api/operation/x_locate/find_suggestion.rb', line 5 def state @state end |
#text ⇒ Object (readonly)
Returns the value of attribute text.
5 6 7 |
# File 'lib/ruby_ptv_api/operation/x_locate/find_suggestion.rb', line 5 def text @text end |
Instance Method Details
#params ⇒ Object
17 18 19 20 21 22 23 24 25 26 |
# File 'lib/ruby_ptv_api/operation/x_locate/find_suggestion.rb', line 17 def params { text: text, country: country, state: state, options: , sorting: sorting, additionalFields: additional_fields } end |
#ptv_function ⇒ Object
13 14 15 |
# File 'lib/ruby_ptv_api/operation/x_locate/find_suggestion.rb', line 13 def ptv_function 'findSuggestion' end |