Skip to content

Commit

Permalink
Removed forgotten parameter & encapsulated the http connection method
Browse files Browse the repository at this point in the history
  • Loading branch information
mguinada committed Oct 1, 2012
1 parent f14197d commit 89289f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/shuffler_fm/http.rb
Expand Up @@ -5,6 +5,7 @@
module ShufflerFM
# @private
module HTTP
private
def connection
options = {:url => ShufflerFM::API.base_uri,
:params => {'api-key' => key}}.merge(ShufflerFM.configuration.values)
Expand Down
2 changes: 1 addition & 1 deletion lib/shuffler_fm/request.rb
Expand Up @@ -14,7 +14,7 @@ def get(path, options = {})
end

private
def request(method, path, options = {}, &block)
def request(method, path, options = {})
response = http_connection.send(method) do |request|
request.url("#{API.version}/#{path}", options)
end
Expand Down

0 comments on commit 89289f9

Please sign in to comment.