Class: Result
- Inherits:
-
Object
- Object
- Result
- Defined in:
- lib/deepviz/result.rb
Instance Attribute Summary collapse
-
#msg ⇒ Object
Returns the value of attribute msg.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(status, msg) ⇒ Result
constructor
A new instance of Result.
- #to_s ⇒ Object
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
#msg ⇒ Object
Returns the value of attribute msg.
13 14 15 |
# File 'lib/deepviz/result.rb', line 13 def msg @msg end |
#status ⇒ Object
Returns the value of attribute status.
11 12 13 |
# File 'lib/deepviz/result.rb', line 11 def status @status end |
Instance Method Details
#to_s ⇒ Object
24 25 26 |
# File 'lib/deepviz/result.rb', line 24 def to_s 'Result(status=%s, msg=%s)' % [@status, @msg] end |