Class: TvMaze::Requester
- Inherits:
-
Object
- Object
- TvMaze::Requester
- Defined in:
- lib/tv_maze/requester.rb
Class Method Summary collapse
Class Method Details
.get(action, params = {}) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/tv_maze/requester.rb', line 6 def get(action, params={}) url = api.url_for(action, params) perform_request do parse_response(RestClient.get(url, request_headers)) end end |