Class: Contracts::Observation

Inherits:
Struct
  • Object
show all
Defined in:
lib/contracts.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#compare_withObject

Returns the value of attribute compare_with

Returns:

  • (Object)

    the current value of compare_with



172
173
174
# File 'lib/contracts.rb', line 172

def compare_with
  @compare_with
end

#deepObject

Returns the value of attribute deep

Returns:

  • (Object)

    the current value of deep



172
173
174
# File 'lib/contracts.rb', line 172

def deep
  @deep
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



172
173
174
# File 'lib/contracts.rb', line 172

def name
  @name
end

#readerObject

Returns the value of attribute reader

Returns:

  • (Object)

    the current value of reader



172
173
174
# File 'lib/contracts.rb', line 172

def reader
  @reader
end

Instance Method Details

#to_hObject



173
# File 'lib/contracts.rb', line 173

def to_h = { name: name, deep: deep, comparator: compare_with }