Skip to content

Commit 0737270

Browse files
author
Kyle Decot
committed
Making the gem even shorter!
1 parent 6144406 commit 0737270

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

lib/kmdata.rb

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
1-
require "kmdata/version"
2-
require "net/http"
3-
require "json"
4-
require "ostruct"
1+
["kmdata/version", "net/http", "json", "ostruct"].each { |f| require f }
52

63
module KMData
74
ENDPOINT = "kmdata.osu.edu"
8-
95
class << self
106

117
def get(path, params = {})
@@ -38,6 +34,5 @@ def process(json)
3834
def path_with_params(path, params = {})
3935
[path, URI.encode_www_form(params)].join("?")
4036
end
41-
4237
end
4338
end

0 commit comments

Comments
 (0)