module Songkick::Transport::Base::API
Public Instance Methods
delete(path, params = {}, head = {}, timeout = nil)
click to toggle source
# File lib/songkick/transport/base.rb, line 22 def delete(path, params = {}, head = {}, timeout = nil) do_verb("delete", path, params, head, timeout) end
get(path, params = {}, head = {}, timeout = nil)
click to toggle source
# File lib/songkick/transport/base.rb, line 6 def get(path, params = {}, head = {}, timeout = nil) do_verb("get", path, params, head, timeout) end
head(path, params = {}, head = {}, timeout = nil)
click to toggle source
# File lib/songkick/transport/base.rb, line 30 def head(path, params = {}, head = {}, timeout = nil) do_verb("head", path, params, head, timeout) end
options(path, params = {}, head = {}, timeout = nil)
click to toggle source
# File lib/songkick/transport/base.rb, line 26 def options(path, params = {}, head = {}, timeout = nil) do_verb("options", path, params, head, timeout) end
patch(path, params = {}, head = {}, timeout = nil)
click to toggle source
# File lib/songkick/transport/base.rb, line 18 def patch(path, params = {}, head = {}, timeout = nil) do_verb("patch", path, params, head, timeout) end
post(path, params = {}, head = {}, timeout = nil)
click to toggle source
# File lib/songkick/transport/base.rb, line 10 def post(path, params = {}, head = {}, timeout = nil) do_verb("post", path, params, head, timeout) end
put(path, params = {}, head = {}, timeout = nil)
click to toggle source
# File lib/songkick/transport/base.rb, line 14 def put(path, params = {}, head = {}, timeout = nil) do_verb("put", path, params, head, timeout) end
with_basic_auth(credentials)
click to toggle source
# File lib/songkick/transport/base.rb, line 46 def with_basic_auth(credentials) BasicAuthDecorator.new(self, credentials) end
with_headers(headers = {})
click to toggle source
# File lib/songkick/transport/base.rb, line 34 def with_headers(headers = {}) HeaderDecorator.new(self, headers) end
with_params(params)
click to toggle source
# File lib/songkick/transport/base.rb, line 42 def with_params(params) ParamsDecorator.new(self, params) end
with_timeout(timeout)
click to toggle source
# File lib/songkick/transport/base.rb, line 38 def with_timeout(timeout) TimeoutDecorator.new(self, timeout) end