RubyFlow : The Ruby Community Blog

Home   Submit   Sign Up   Log In   leaders   Twitter   RSS Feed  
 

Rapidash - a ruby gem to rapidly build your API client

I have created Rapidash a ruby gem to help you make an API client for your RESTful API in a few lines of code.


class Repos < Rapidash::Base
end

class User < Rapidash::Base
resource :repos
end

class Client < Rapidash::Client
resource :users
method :http
site "https://github.com"
end

Client.new.users("Gazler").repos! #Output the repos that belong to Gazler

Comments

Post a Comment

Comment abilities for non registered users are currently deactivated, pending time to add a proper CAPTCHA to solve the escalating spam problem. Sorry!