Sha256: 811d3a575261b16dd5650b1d2b921428a42eeb9558f0a89fbc485047e3375e74
Contents?: true
Size: 709 Bytes
Versions: 3
Compression:
Stored size: 709 Bytes
Contents
module Ykutils class RetCode attr_reader :val, :mes, :ret, :bool def initialize(obj) @val = obj @mes = obj["mes"] @ret = obj["ret"] @bool = obj["bool"] end def [](key) @val[key] end def to_s @bool end def set_bool(val) @bool = val end def get_bool @bool end def set_mes(val) @mes = val end def set_ret(val) @ret = val end end class RetCode2 < RetCode attr_reader :val attr_accessor :mes, :ret, :bool def initialize(ret, bool, mes) @val = { "ret" => ret, "bool" => bool, "mes" => mes } @ret = ret @bool = bool @mes = mes end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ykutils-0.1.4 | lib/ykutils/retcodex.rb |
ykutils-0.1.3 | lib/ykutils/retcodex.rb |
ykutils-0.1.1 | lib/ykutils/retcodex.rb |