Sha256: 6a402a41cf9e8ab0192f1c7c74d0913d1050d582c9587071a4d41c25c3cf601b

Contents?: true

Size: 233 Bytes

Versions: 7

Compression:

Stored size: 233 Bytes

Contents

module WargamingApi::Util::Uri
  def api_uri(params)
    host = 'http://api.worldoftanks.ru/'
    path = self.class.to_s.underscore.gsub('wargaming_api/', '').gsub('_', '')

    URI([host, path, '/?', params.to_param].join)
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
wargaming_api_ruby-0.1.7 lib/wargaming_api/util/uri.rb
wargaming_api_ruby-0.1.5 lib/wargaming_api/util/uri.rb
wargaming_api_ruby-0.1.4 lib/wargaming_api/util/uri.rb
wargaming_api_ruby-0.1.3 lib/wargaming_api/util/uri.rb
wargaming_api_ruby-0.1.2 lib/wargaming_api/util/uri.rb
wargaming_api_ruby-0.1.1 lib/wargaming_api/util/uri.rb
wargaming_api_ruby-0.1.0 lib/wargaming_api/util/uri.rb