Class: Geonames::ToponymSearchCriteria

Inherits:
Object
  • Object
show all
Defined in:
lib/geonames/toponym_search_criteria.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_1Object

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_codeObject

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_classObject

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_codesObject

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_requiredObject

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

#languageObject

Returns the value of attribute language.



22
23
24
# File 'lib/geonames/toponym_search_criteria.rb', line 22

def language
  @language
end

#max_rowsObject

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

#nameObject

Returns the value of attribute name.



22
23
24
# File 'lib/geonames/toponym_search_criteria.rb', line 22

def name
  @name
end

#name_equalsObject

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_withObject

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

#qObject

Returns the value of attribute q.



22
23
24
# File 'lib/geonames/toponym_search_criteria.rb', line 22

def q
  @q
end

#start_rowObject

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

#styleObject

Returns the value of attribute style.



22
23
24
# File 'lib/geonames/toponym_search_criteria.rb', line 22

def style
  @style
end

#tagObject

Returns the value of attribute tag.



22
23
24
# File 'lib/geonames/toponym_search_criteria.rb', line 22

def tag
  @tag
end