Sha256: 52ebd81644b0598f5bbc23d8afcfbd4a7fdd65395ed50ddad5b95afb6c37690c
Contents?: true
Size: 596 Bytes
Versions: 1
Compression:
Stored size: 596 Bytes
Contents
require 'open-uri' require 'json' require 'active_support/all' require "geonames_api/version" require "geonames_api/hash" require "geonames_api/object" require "geonames_api/country" require "geonames_api/weather" 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.2 | lib/geonames_api.rb |