Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A stupid-simple ORM that provides the minimum neccessary api, and stays out of your way
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
benchmarks
lib
profile
spec
.document
.gitignore
.rspec
.rvmrc
Gemfile
LICENSE
README.mkd
Rakefile
VERSION
datapathy.gemspec
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.