0.01
No commit activity in last 3 years
No release in over 3 years
TODO
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Runtime

 Project Readme

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.