Project

jaysus

0.0
No commit activity in last 3 years
No release in over 3 years
Persist remote JSON APIs locally and vice versa
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.0.0
~> 1.3.0
~> 1.5.2
>= 0
~> 2.0.0

Runtime

~> 3.0.0
~> 1.6.1
 Project Readme

Jaysus

Jaysus is a local/remote persistence/sync framework for MacRuby. It's designed for keeping local copies of responses from a remote JSON api.

Usage

Jaysus::Local.store_dir = '~/.jaysus/'
Jaysus::Remote.base_url = 'https://user:pass@https://dnsimple.com'

module Domain
  class Base < Jaysus::Base
    primary_key :id
    attribute :name
    attribute :name_server_status
    attribute :registrant_id
    attribute :registration_status
    attribute :expires_at
    attribute :created_at
    attribute :updated_at
    attribute :user_id
  end
  
  class Local < Base
    include Jaysus::Local
  end
  
  class Remote < Base
    include Jaysus::Remote
  end
end

domain = Site::Remote.new
domain.title = "This"
domain.user_id = 1
domain.save

== Copyright

Copyright (c) 2011 Paul Campbell. See LICENSE.txt for further details.