Class: Twitch::Adapters::HTTPartyAdapter
- Inherits:
-
BaseAdapter
- Object
- BaseAdapter
- Twitch::Adapters::HTTPartyAdapter
- Defined in:
- lib/twitch/adapters/httparty_adapter.rb
Class Method Summary collapse
Methods inherited from BaseAdapter
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, ={}) res = HTTParty.send(method, url, ) {:body => res, :response => res.code} end |