Class: MimiCheck::Result::Success

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#propertyObject (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