Module: Geonames

Defined in:
lib/address.rb,
lib/toponym.rb,
lib/geonames.rb,
lib/timezone.rb,
lib/postal_code.rb,
lib/web_service.rb,
lib/bounding_box.rb,
lib/country_info.rb,
lib/intersection.rb,
lib/search_criteria.rb,
lib/wikipedia_article.rb,
lib/country_subdivision.rb,
lib/toponym_search_result.rb,
lib/toponym_search_criteria.rb,
lib/postal_code_search_criteria.rb

Overview

Copyright 2007 Adam Wisniewski <[email protected]>

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Defined Under Namespace

Classes: Address, BoundingBox, CountryInfo, CountrySubdivision, Intersection, PostalCode, PostalCodeSearchCriteria, SearchCriteria, Timezone, Toponym, ToponymSearchCriteria, ToponymSearchResult, WebService, WikipediaArticle

Constant Summary collapse

GEONAMES_SERVER =
"http://ws.geonames.org"
USER_AGENT =
"geonames ruby webservice client 0.1"
@@username =
nil
@@base_url =
"http://ws.geonames.org"

Class Method Summary collapse

Class Method Details

.base_urlObject



51
52
53
# File 'lib/geonames.rb', line 51

def self.base_url
  @@base_url
end

.base_url=(base_url) ⇒ Object



55
56
57
# File 'lib/geonames.rb', line 55

def self.base_url=(base_url)
  @@base_url = base_url
end

.usernameObject



43
44
45
# File 'lib/geonames.rb', line 43

def self.username
  @@username
end

.username=(username) ⇒ Object



47
48
49
# File 'lib/geonames.rb', line 47

def self.username=(username)
  @@username = username
end