Sha256: 41c17b8839edf72741fdbdd6deb49a97ce0bce6c07e9b00fe74da5cf2409c3b3

Contents?: true

Size: 308 Bytes

Versions: 4

Compression:

Stored size: 308 Bytes

Contents

require 'couchrest'

module Jkl
  
  SERVER = CouchRest.database! YAML::load_file('config/config.yml')['db']
  
  def delete_db
    SERVER.delete! rescue nil
  end
  
  class Trend < CouchRest::ExtendedDocument
    
    use_database SERVER
    property :name
    view_by :name
    timestamps!
  
  end
  
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
sshingler-jkl-0.0.2 lib/persistence_client.rb
sshingler-jkl-0.0.4 lib/jkl/persistence_client.rb
sshingler-jkl-0.0.5 lib/jkl/persistence_client.rb
sshingler-jkl-0.0.6 lib/jkl/persistence_client.rb