Class: Ykutils::RetCode2
Instance Attribute Summary collapse
-
#bool ⇒ Object
Returns the value of attribute bool.
-
#mes ⇒ Object
Returns the value of attribute mes.
-
#ret ⇒ Object
Returns the value of attribute ret.
-
#val ⇒ Object
readonly
Returns the value of attribute val.
Instance Method Summary collapse
-
#initialize(ret, bool, mes) ⇒ RetCode2
constructor
A new instance of RetCode2.
Methods inherited from RetCode
#[], #get_bool, #set_bool, #set_mes, #set_ret, #to_s
Constructor Details
#initialize(ret, bool, mes) ⇒ RetCode2
Returns a new instance of RetCode2.
41 42 43 44 |
# File 'lib/ykutils/retcodex.rb', line 41 def initialize(ret, bool, mes) @val = { "ret" => ret, "bool" => bool, "mes" => mes } super(@val) end |
Instance Attribute Details
#bool ⇒ Object
Returns the value of attribute bool.
39 40 41 |
# File 'lib/ykutils/retcodex.rb', line 39 def bool @bool end |
#mes ⇒ Object
Returns the value of attribute mes.
39 40 41 |
# File 'lib/ykutils/retcodex.rb', line 39 def mes @mes end |
#ret ⇒ Object
Returns the value of attribute ret.
39 40 41 |
# File 'lib/ykutils/retcodex.rb', line 39 def ret @ret end |
#val ⇒ Object (readonly)
Returns the value of attribute val.
38 39 40 |
# File 'lib/ykutils/retcodex.rb', line 38 def val @val end |