Class: Treehouse
- Inherits:
-
Object
- Object
- Treehouse
- Defined in:
- lib/treehouse.rb
Overview
Main Treehouse Class
Class Method Summary collapse
Class Method Details
.parse(user) ⇒ Object
8 9 10 11 |
# File 'lib/treehouse.rb', line 8 def self.parse(user) json = Net::HTTP.get(URI.parse('http://teamtreehouse.com/' + user + '.json')) JSON.parse(json) end |