Sha256: ae800048df5c88452c1dc229c05e22cd023feb523726316d60c3c68c82931176
Contents?: true
Size: 455 Bytes
Versions: 1
Compression:
Stored size: 455 Bytes
Contents
module GitHub class User include HappyMapper tag "user" element :company, String element :name, String element :blog, String element :email, String element :location, String element :login, String has_many :repositories, Repository def self.find(username) xml = RestClient.get("http://github.com/api/v1/xml/#{username}") users = parse(xml) users.first end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dancroak-le-git-0.0.0 | lib/le_git/user.rb |