Sha256: 8f6f88ae9d73e28d1fca9f69fb1917d4adb9a273ddbab22815e241835b6e6d71
Contents?: true
Size: 498 Bytes
Versions: 1
Compression:
Stored size: 498 Bytes
Contents
# Redisに登録するためのデータクラス。 require 'json' class PwData attr_accessor :key @username @password def set_username(value) @username = value end def get_username value = @username value end def set_password(value) @password = value end def get_password value = @password value end def get_json_value hash = Hash.new hash.store(:username, @username) hash.store(:password, @password) hash.to_json end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rbpw-0.0.3 | lib/rbpw/pw_data.rb |