Class: MimiCheck::Result::Success
- Inherits:
-
Object
- Object
- MimiCheck::Result::Success
- Defined in:
- lib/mimicheck/result.rb
Instance Attribute Summary collapse
-
#property ⇒ Object
readonly
Returns the value of attribute property.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(property) ⇒ Success
constructor
A new instance of Success.
Constructor Details
#initialize(property) ⇒ Success
Returns a new instance of Success.
4 5 6 |
# File 'lib/mimicheck/result.rb', line 4 def initialize(property) @property = property end |
Instance Attribute Details
#property ⇒ Object (readonly)
Returns the value of attribute property.
7 8 9 |
# File 'lib/mimicheck/result.rb', line 7 def property @property end |
Instance Method Details
#==(other) ⇒ Object
9 10 11 12 |
# File 'lib/mimicheck/result.rb', line 9 def ==(other) return false unless other.is_a?(self.class) property == other.property end |