Skip to content
A stupid-simple ORM that provides the minimum neccessary api, and stays out of your way
Ruby
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
benchmarks
lib Allow model to override service_uri
profile
spec
.document
.gitignore
.rspec
.rvmrc Service discovery and stuff
Gemfile Modernize, and add a full-stack http spec
LICENSE
README.mkd
Rakefile
VERSION
datapathy.gemspec Modernize, and add a full-stack http spec
resourceful_services.rb

README.mkd

datapathy

The stupid-simple ORM as an HTTP client.

Examples

class Post
  include Datapathy::Model

  # Using service discovery
  self.service_name = "AllPosts"
  # Using manual URLs. Boo.
  self.service_href = "http://example.com/posts{?author_href,q}"

  persists :title, :body, :author_href, :comments_href

  links :author
  links :comments

end

Post.href  #=> "http://example.com/posts"
Post.select { |p| p.author = author }.href
# => "http://example.com/posts?author_href=http://example.com/authors/1"

Copyright

Copyright (c) 2011 Paul Sadauskas. See LICENSE for details.

Something went wrong with that request. Please try again.