Class: Result

Inherits:
Object
  • Object
show all
Defined in:
lib/deepviz/result.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status, msg) ⇒ Result

Returns a new instance of Result.



19
20
21
22
# File 'lib/deepviz/result.rb', line 19

def initialize(status, msg)
  @status = status
  @msg = msg
end

Instance Attribute Details

#msgObject

Returns the value of attribute msg.



13
14
15
# File 'lib/deepviz/result.rb', line 13

def msg
  @msg
end

#statusObject

Returns the value of attribute status.



11
12
13
# File 'lib/deepviz/result.rb', line 11

def status
  @status
end

Instance Method Details

#to_sObject



24
25
26
# File 'lib/deepviz/result.rb', line 24

def to_s
  'Result(status=%s, msg=%s)' % [@status, @msg]
end