lc-api 0.8.6 → 0.8.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/lc-api/api.rb +3 -4
- metadata +1 -1
data/lib/lc-api/api.rb
CHANGED
@@ -3,11 +3,10 @@ require 'httparty'
|
|
3
3
|
module LcApi
|
4
4
|
class API
|
5
5
|
class << self
|
6
|
-
def
|
7
|
-
|
8
|
-
uri = LcApi.base_uri + args.shift
|
6
|
+
def get(uri, options)
|
7
|
+
uri = LcApi.base_uri + uri
|
9
8
|
appends = ""
|
10
|
-
|
9
|
+
options.each { |k,v| appends << "&#{k}=#{(v.is_a?(Array) ? v.join(",") : v)}" }
|
11
10
|
HTTParty.get("#{uri}?key=#{LcApi.key}#{appends}")
|
12
11
|
end
|
13
12
|
end
|