Class: MLB::Request
- Inherits:
-
Object
- Object
- MLB::Request
- Defined in:
- lib/mlb/request.rb
Class Method Summary collapse
-
.get(path, options = {}, raw = false) ⇒ Object
Perform an HTTP GET request.
Class Method Details
.get(path, options = {}, raw = false) ⇒ Object
Perform an HTTP GET request
9 10 11 12 13 14 |
# File 'lib/mlb/request.rb', line 9 def self.get(path, ={}, raw=false) response = connection(raw).get do |request| request.url(path, ) end raw ? response : response.body end |