Module: IRail::Request

Defined in:
lib/ruby-irail/http/request.rb

Class Method Summary collapse

Class Method Details

.get(url, options = {}) ⇒ Object



3
4
5
6
# File 'lib/ruby-irail/http/request.rb', line 3

def self.get(url, options = {})
  request = HTTParty.get(url, options)
  request.response.body
end