Sha256: 5d280754c18447f5a099a253d473b950c2144dbc27c785de71a1f1d60e9a048b
Contents?: true
Size: 690 Bytes
Versions: 1
Compression:
Stored size: 690 Bytes
Contents
require 'open-uri' require 'json' require 'active_support/all' require "geonames_api/version" require "geonames_api/hash" require "geonames_api/error" require "geonames_api/object" require "geonames_api/country" require "geonames_api/weather" require "geonames_api/time_zone" require "geonames_api/wikipedia" module GeoNamesAPI mattr_accessor :url @@url = "http://api.geonames.org/" mattr_accessor :formatted @@formatted = true mattr_accessor :lang @@lang = :en mattr_accessor :username @@username = "demo" mattr_accessor :style @@style = :full def self.params { formatted: formatted, lang: lang, username: username, style: style } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
geonames_api-0.0.3 | lib/geonames_api.rb |