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-0.3.5 spec/support/models/db/person.rb
gummi-0.3.4 spec/support/models/db/person.rb
gummi-0.3.3 spec/support/models/db/person.rb
gummi-0.3.2 spec/support/models/db/person.rb
gummi-0.3.1 spec/support/models/db/person.rb
gummi-0.3.0 spec/support/models/db/person.rb
gummi-0.2.3 spec/support/models/db/person.rb
gummi-0.2.2 spec/support/models/db/person.rb
gummi-0.2.1 spec/fixtures/db/person.rb
gummi-0.2.0 spec/fixtures/db/person.rb