Class: Mocktail::UnsatisfyingCallExplanation

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/mocktail/value/unsatisfying_call_explanation.rb,
lib/mocktail/sorbet/mocktail/value/unsatisfying_call_explanation.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(reference, message) ⇒ UnsatisfyingCallExplanation

Returns a new instance of UnsatisfyingCallExplanation.



9
10
11
12
# File 'lib/mocktail/value/unsatisfying_call_explanation.rb', line 9

def initialize(reference, message)
  @reference = reference
  @message = message
end

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message.



7
8
9
# File 'lib/mocktail/value/unsatisfying_call_explanation.rb', line 7

def message
  @message
end

#referenceObject (readonly)

Returns the value of attribute reference.



5
6
7
# File 'lib/mocktail/value/unsatisfying_call_explanation.rb', line 5

def reference
  @reference
end

Instance Method Details

#typeObject



14
15
16
# File 'lib/mocktail/value/unsatisfying_call_explanation.rb', line 14

def type
  self.class
end