Sha256: 3ec96d119753de9202d5d11184072f425555f4dac045a00fe5d926e6712e7bcd

Contents?: true

Size: 295 Bytes

Versions: 3

Compression:

Stored size: 295 Bytes

Contents

# example db model

module DB
  class Person
    include Gummi::Document

    attribute :name,          Gummi::Fields::Keyword
    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

3 entries across 3 versions & 1 rubygems

Version Path
gummi-0.0.9 spec/models/db/person.rb
gummi-0.0.8 spec/models/db/person.rb
gummi-0.0.7 spec/models/db/person.rb