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/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, 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_url ⇒ Object
50 51 52 |
# File 'lib/geonames.rb', line 50 def self.base_url @@base_url end |
.base_url=(base_url) ⇒ Object
54 55 56 |
# File 'lib/geonames.rb', line 54 def self.base_url=(base_url) @@base_url = base_url end |
.username ⇒ Object
42 43 44 |
# File 'lib/geonames.rb', line 42 def self.username @@username end |
.username=(username) ⇒ Object
46 47 48 |
# File 'lib/geonames.rb', line 46 def self.username=(username) @@username = username end |