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