Sha256: 23c6baf04fdaa8557acb0b6600e19b4f3b512a5492eb8274999db9bbbd8857be

Contents?: true

Size: 454 Bytes

Versions: 4

Compression:

Stored size: 454 Bytes

Contents

module Scriptures
  class Book
    include DataMapper::Resource

    storage_names[:default] = 'books'

    property :id,           Integer, :key => true
    property :volume_id,    Integer
    property :title,        String
    property :proper_title, String
    property :subtitle,     String
    property :abbreviation, String
    property :idx,          String
    property :jst,          String

    has n, :chapters
    belongs_to :volume
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
scriptures-0.0.5 lib/scriptures/models/book.rb
scriptures-0.0.4 lib/scriptures/models/book.rb
scriptures-0.0.3 lib/scriptures/models/book.rb
scriptures-0.0.1 lib/scriptures/models/book.rb