Sha256: a7e84a4fa7b071160d0ae0f7e51cef3c0a1377ab4229b910956647bc472ba331
Contents?: true
Size: 457 Bytes
Versions: 2
Compression:
Stored size: 457 Bytes
Contents
# coding: utf-8 module Engine2 class UserInfo < Sequel::Model(DUMMYDB) set_natural_key :name extend MemoryModel type_info do string_field :name, 10 required :name, LOCS[:user_required] string_field :password, 20 required :password, LOCS[:password_required] password :password end def to_hash {name: @values[:name]} end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
engine2-1.0.4 | lib/engine2/models/UserInfo.rb |
engine2-1.0.3 | lib/engine2/models/UserInfo.rb |