The code over at github: https://github.com/aburdette/dicrb
To use it, until I complete some testing and upload it as a ruby gem, you'll need to download the code and build/install the gem locally. Doing that is just running a couple commands from the project directory:
gem build dicrb.gemspec gem install dicrb-*.gem
Using it is actually pretty straight-forward and I put together an example in the examples directory of the project: https://github.com/a...master/examples
require 'dicrb'
@user = DICRb::Profile.new(12345)
puts @user.name
puts @user.group
@user.comments.each do |c|
puts "#{c.user.name}: #{c.text}"
end
This post has been edited by Skaggles: 17 September 2011 - 12:41 AM

New Topic/Question
Reply







MultiQuote





|