Class: Ykutils::RetCode2

Inherits:
RetCode show all
Defined in:
lib/ykutils/retcodex.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RetCode

#[], #to_s

Constructor Details

#initialize(ret, bool, mes) ⇒ RetCode2

Returns a new instance of RetCode2.



26
27
28
29
# File 'lib/ykutils/retcodex.rb', line 26

def initialize(ret, bool, mes)
  @val = { "ret" => ret, "bool" => bool, "mes" => mes }
  super(@val)
end

Instance Attribute Details

#boolObject

Returns the value of attribute bool.



24
25
26
# File 'lib/ykutils/retcodex.rb', line 24

def bool
  @bool
end

#mesObject

Returns the value of attribute mes.



24
25
26
# File 'lib/ykutils/retcodex.rb', line 24

def mes
  @mes
end

#retObject

Returns the value of attribute ret.



24
25
26
# File 'lib/ykutils/retcodex.rb', line 24

def ret
  @ret
end

#valObject (readonly)

Returns the value of attribute val.



23
24
25
# File 'lib/ykutils/retcodex.rb', line 23

def val
  @val
end