Class: Twitch::Adapters::HTTPartyAdapter

Inherits:
BaseAdapter show all
Defined in:
lib/twitch/adapters/httparty_adapter.rb

Class Method Summary collapse

Methods inherited from BaseAdapter

delete, get, post, put

Class Method Details

.request(method, url, options = {}) ⇒ Object



7
8
9
10
# File 'lib/twitch/adapters/httparty_adapter.rb', line 7

def self.request(method, url, options={})
  res = HTTParty.send(method, url, options)
  {:body => res, :response => res.code}
end