Class: Organo::Request

Inherits:
Object
  • Object
show all
Defined in:
lib/organo/request.rb

Class Method Summary collapse

Class Method Details

.get_json(url) ⇒ Object



8
9
10
11
# File 'lib/organo/request.rb', line 8

def self.get_json(url)
  response = RestClient.get(url)
  JSON.parse(response)['data']
end