Sha256: d9a8c4f42cd2b43212cdc72f5e38913f14259d90275d83aee27376e2b88edb4e

Contents?: true

Size: 294 Bytes

Versions: 4

Compression:

Stored size: 294 Bytes

Contents

# example db model

module DB
  class Person
    include Gummi::Document

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

    def computed_name
      name.upcase if name
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
gummi-0.1.2 spec/models/db/person.rb
gummi-0.1.1 spec/models/db/person.rb
gummi-0.1.0 spec/models/db/person.rb
gummi-0.0.6 spec/models/db/person.rb