Class: Geonames::ToponymSearchCriteria
- Inherits:
-
Object
- Object
- Geonames::ToponymSearchCriteria
- Defined in:
- lib/geonames/toponym_search_criteria.rb
Instance Attribute Summary collapse
-
#admin_code_1 ⇒ Object
Returns the value of attribute admin_code_1.
-
#country_code ⇒ Object
Returns the value of attribute country_code.
-
#feature_class ⇒ Object
Returns the value of attribute feature_class.
-
#feature_codes ⇒ Object
Returns the value of attribute feature_codes.
-
#is_name_required ⇒ Object
Returns the value of attribute is_name_required.
-
#language ⇒ Object
Returns the value of attribute language.
-
#max_rows ⇒ Object
Returns the value of attribute max_rows.
-
#name ⇒ Object
Returns the value of attribute name.
-
#name_equals ⇒ Object
Returns the value of attribute name_equals.
-
#name_starts_with ⇒ Object
Returns the value of attribute name_starts_with.
-
#q ⇒ Object
Returns the value of attribute q.
-
#start_row ⇒ Object
Returns the value of attribute start_row.
-
#style ⇒ Object
Returns the value of attribute style.
-
#tag ⇒ Object
Returns the value of attribute tag.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ ToponymSearchCriteria
constructor
A new instance of ToponymSearchCriteria.
Constructor Details
#initialize(params = {}) ⇒ ToponymSearchCriteria
Returns a new instance of ToponymSearchCriteria.
27 28 29 30 31 |
# File 'lib/geonames/toponym_search_criteria.rb', line 27 def initialize(params={}) params.each do |attr, value| self.public_send("#{attr}=", value) end if params end |
Instance Attribute Details
#admin_code_1 ⇒ Object
Returns the value of attribute admin_code_1.
22 23 24 |
# File 'lib/geonames/toponym_search_criteria.rb', line 22 def admin_code_1 @admin_code_1 end |
#country_code ⇒ Object
Returns the value of attribute country_code.
22 23 24 |
# File 'lib/geonames/toponym_search_criteria.rb', line 22 def country_code @country_code end |
#feature_class ⇒ Object
Returns the value of attribute feature_class.
22 23 24 |
# File 'lib/geonames/toponym_search_criteria.rb', line 22 def feature_class @feature_class end |
#feature_codes ⇒ Object
Returns the value of attribute feature_codes.
22 23 24 |
# File 'lib/geonames/toponym_search_criteria.rb', line 22 def feature_codes @feature_codes end |
#is_name_required ⇒ Object
Returns the value of attribute is_name_required.
22 23 24 |
# File 'lib/geonames/toponym_search_criteria.rb', line 22 def is_name_required @is_name_required end |
#language ⇒ Object
Returns the value of attribute language.
22 23 24 |
# File 'lib/geonames/toponym_search_criteria.rb', line 22 def language @language end |
#max_rows ⇒ Object
Returns the value of attribute max_rows.
22 23 24 |
# File 'lib/geonames/toponym_search_criteria.rb', line 22 def max_rows @max_rows end |
#name ⇒ Object
Returns the value of attribute name.
22 23 24 |
# File 'lib/geonames/toponym_search_criteria.rb', line 22 def name @name end |
#name_equals ⇒ Object
Returns the value of attribute name_equals.
22 23 24 |
# File 'lib/geonames/toponym_search_criteria.rb', line 22 def name_equals @name_equals end |
#name_starts_with ⇒ Object
Returns the value of attribute name_starts_with.
22 23 24 |
# File 'lib/geonames/toponym_search_criteria.rb', line 22 def name_starts_with @name_starts_with end |
#q ⇒ Object
Returns the value of attribute q.
22 23 24 |
# File 'lib/geonames/toponym_search_criteria.rb', line 22 def q @q end |
#start_row ⇒ Object
Returns the value of attribute start_row.
22 23 24 |
# File 'lib/geonames/toponym_search_criteria.rb', line 22 def start_row @start_row end |
#style ⇒ Object
Returns the value of attribute style.
22 23 24 |
# File 'lib/geonames/toponym_search_criteria.rb', line 22 def style @style end |
#tag ⇒ Object
Returns the value of attribute tag.
22 23 24 |
# File 'lib/geonames/toponym_search_criteria.rb', line 22 def tag @tag end |