Class: Contracts::Observation
- Inherits:
-
Struct
- Object
- Struct
- Contracts::Observation
- Defined in:
- lib/contracts.rb
Instance Attribute Summary collapse
-
#compare_with ⇒ Object
Returns the value of attribute compare_with.
-
#deep ⇒ Object
Returns the value of attribute deep.
-
#name ⇒ Object
Returns the value of attribute name.
-
#reader ⇒ Object
Returns the value of attribute reader.
Instance Method Summary collapse
Instance Attribute Details
#compare_with ⇒ Object
Returns the value of attribute compare_with
172 173 174 |
# File 'lib/contracts.rb', line 172 def compare_with @compare_with end |
#deep ⇒ Object
Returns the value of attribute deep
172 173 174 |
# File 'lib/contracts.rb', line 172 def deep @deep end |
#name ⇒ Object
Returns the value of attribute name
172 173 174 |
# File 'lib/contracts.rb', line 172 def name @name end |
#reader ⇒ Object
Returns the value of attribute reader
172 173 174 |
# File 'lib/contracts.rb', line 172 def reader @reader end |
Instance Method Details
#to_h ⇒ Object
173 |
# File 'lib/contracts.rb', line 173 def to_h = { name: name, deep: deep, comparator: compare_with } |