class NixAdm::Status::Result
Attributes
data[RW]
msg[RW]
val[RW]
Public Class Methods
new()
click to toggle source
# File src/lib/nixadm/pipeline.rb, line 17 def initialize() clear() end
Public Instance Methods
==(that)
click to toggle source
# File src/lib/nixadm/pipeline.rb, line 35 def ==(that) if that.class == TrueClass return @val == 0 end if that.class == FalseClass return @val != 0 end if that.class == Result return @val == that.val end return false end
clear()
click to toggle source
# File src/lib/nixadm/pipeline.rb, line 21 def clear() @val = 0 @msg = nil @data = {} end
toJson()
click to toggle source
# File src/lib/nixadm/pipeline.rb, line 27 def toJson() return { 'rc' => @val, 'msg' => @msg, 'data' => @data } end