examples/github.rb in rapidash-0.1.2 vs examples/github.rb in rapidash-0.2.0

- old
+ new

@@ -1,33 +1,33 @@ require 'rapidash' -class Repos < Rapidash::Base +class Repo < Rapidash::Base def repo!(owner, repo) self.url += "/#{owner}/#{repo}" call! end end -class Users < Rapidash::Base +class User < Rapidash::Base resource :repos end -class Emojis < Rapidash::Base +class Emoji < Rapidash::Base end -class Events < Rapidash::Base +class Event < Rapidash::Base end -class Gists < Rapidash::Base +class Gist < Rapidash::Base def public! self.url += "/public" call! end end -class Organisations < Rapidash::Base +class Organisation < Rapidash::Base url "orgs" end class Limit < Rapidash::Base url "rate_limit"