vergilet/open_dota_api

View on GitHub
lib/open_dota_api/connection.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
require 'httparty'

module OpenDotaApi
  class Connection
    include HTTParty
    base_uri 'api.opendota.com'

    def get(pathname, options = {})
      self.class.get(pathname, options)
    end
  end
end