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.
Files changed (2) hide show
  1. data/lib/lc-api/api.rb +3 -4
  2. 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 method_missing(method_name, *args)
7
- super(method_name, args) unless [:get].include? method_name
8
- uri = LcApi.base_uri + args.shift
6
+ def get(uri, options)
7
+ uri = LcApi.base_uri + uri
9
8
  appends = ""
10
- args.shift.each { |k,v| appends << "&#{k}=#{(v.is_a?(Array) ? v.join(",") : v)}" }
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lc-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.6
4
+ version: 0.8.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: