Class: Spy::CallLog
- Inherits:
-
Object
- Object
- Spy::CallLog
- Defined in:
- lib/spy/call_log.rb
Instance Attribute Summary collapse
-
#args ⇒ Array
readonly
Arguments were sent to the method.
-
#block ⇒ Proc
readonly
The block that was sent to the method.
-
#called_from ⇒ String
readonly
Where the method was called from.
-
#kwargs ⇒ Array
readonly
Keyword arguments were sent to the method.
-
#object ⇒ Object
readonly
Object that the method was called from.
-
#result ⇒ Object
readonly
The result of the method of being stubbed, or called through.
Instance Method Summary collapse
-
#initialize(object, called_from, args, kwargs, block, result) ⇒ CallLog
constructor
A new instance of CallLog.
Constructor Details
#initialize(object, called_from, args, kwargs, block, result) ⇒ CallLog
Returns a new instance of CallLog.
25 26 27 |
# File 'lib/spy/call_log.rb', line 25 def initialize(object, called_from, args, kwargs, block, result) @object, @called_from, @args, @kwargs, @block, @result = object, called_from, args, kwargs, block, result end |
Instance Attribute Details
#args ⇒ Array (readonly)
Returns arguments were sent to the method.
|
# File 'lib/spy/call_log.rb', line 4
|
#block ⇒ Proc (readonly)
Returns the block that was sent to the method.
|
# File 'lib/spy/call_log.rb', line 4
|
#called_from ⇒ String (readonly)
Returns where the method was called from.
|
# File 'lib/spy/call_log.rb', line 4
|
#kwargs ⇒ Array (readonly)
Returns keyword arguments were sent to the method.
|
# File 'lib/spy/call_log.rb', line 4
|
#object ⇒ Object (readonly)
Returns object that the method was called from.
|
# File 'lib/spy/call_log.rb', line 4
|
#result ⇒ Object (readonly)
Returns The result of the method of being stubbed, or called through.
|
# File 'lib/spy/call_log.rb', line 4
|