Sha256: cc7f224b36dbb072005897969e17683c4c8f5385f8bc55d1f2041e43e7505c56

Contents?: true

Size: 331 Bytes

Versions: 30

Compression:

Stored size: 331 Bytes

Contents

# example db model

module DB
  class Person
    include Gummi::DbLayer::Document

    attribute :name,          Gummi::DbLayer::Fields::String
    attribute :computed_name, Gummi::DbLayer::Fields::String
    attribute :born_at,       Gummi::DbLayer::Fields::Time

    def computed_name
      name.upcase if name
    end
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
gummi-1.0.10 spec/support/models/db/person.rb
gummi-1.0.9 spec/support/models/db/person.rb
gummi-1.0.8 spec/support/models/db/person.rb
gummi-1.0.7 spec/support/models/db/person.rb
gummi-1.0.6 spec/support/models/db/person.rb
gummi-1.0.5 spec/support/models/db/person.rb
gummi-1.0.4 spec/support/models/db/person.rb
gummi-0.3.16 spec/support/models/db/person.rb
gummi-1.0.3 spec/support/models/db/person.rb
gummi-1.0.2 spec/support/models/db/person.rb
gummi-1.0.0 spec/support/models/db/person.rb
gummi-0.3.14 spec/support/models/db/person.rb
gummi-0.3.13 spec/support/models/db/person.rb
gummi-0.3.12 spec/support/models/db/person.rb
gummi-0.3.11 spec/support/models/db/person.rb
gummi-0.3.10 spec/support/models/db/person.rb
gummi-0.3.9 spec/support/models/db/person.rb
gummi-0.3.8 spec/support/models/db/person.rb
gummi-0.3.7 spec/support/models/db/person.rb
gummi-0.3.6 spec/support/models/db/person.rb