Sha256: ba9575dc32161dd4dbd457dcf7c96325ae857ba7e1ba77c190f8c2403818d405

Contents?: true

Size: 537 Bytes

Versions: 5

Compression:

Stored size: 537 Bytes

Contents

# coding: utf-8
# frozen_string_literal: true

module Engine2
    class UserInfo < Sequel::Model(DUMMYDB)
        set_natural_key :name
        extend MemoryModel

        type_info do
            string_field :name, 100
            required :name, LOCS[:user_required]
            string_field :password, 100
            required :password, LOCS[:password_required]
            password :password
        end

        def to_hash
            hash = @values.dup
            hash.delete(:password)
            hash
        end
    end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
engine2-1.0.9 lib/engine2/models/UserInfo.rb
engine2-1.0.8 lib/engine2/models/UserInfo.rb
engine2-1.0.7 lib/engine2/models/UserInfo.rb
engine2-1.0.6 lib/engine2/models/UserInfo.rb
engine2-1.0.5 lib/engine2/models/UserInfo.rb