Sha256: 222998f49387c7e5683dee5bbbaa63d1636ed0eb2f67f8d69c96292711cfe0e4

Contents?: true

Size: 410 Bytes

Versions: 1

Compression:

Stored size: 410 Bytes

Contents

class Widget
  include Ripple::Document
  property :size, Integer
  property :name, String, :default => "widget"
  property :manufactured, Boolean, :default => false
  property :shipped_at, Time

  attr_protected :manufactured

  many :widget_parts
end

class Cog < Widget
  property :name, String, :default => "cog"
end

class WidgetPart
  include Ripple::Document
  property :name, String
  key_on :name
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ripple-1.0.0.beta spec/support/models/widget.rb