Class: Mocha::Invocation

Inherits:
Object show all
Defined in:
lib/mocha/invocation.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(mock, method_name, arguments) ⇒ Invocation

Returns a new instance of Invocation.



4
5
6
7
8
# File 'lib/mocha/invocation.rb', line 4

def initialize(mock, method_name, arguments)
  @mock        = mock
  @method_name = method_name
  @arguments   = arguments
end

Instance Attribute Details

#argumentsObject (readonly)

Returns the value of attribute arguments.



3
4
5
# File 'lib/mocha/invocation.rb', line 3

def arguments
  @arguments
end

#method_nameObject (readonly)

Returns the value of attribute method_name.



3
4
5
# File 'lib/mocha/invocation.rb', line 3

def method_name
  @method_name
end

#mockObject (readonly)

Returns the value of attribute mock.



3
4
5
# File 'lib/mocha/invocation.rb', line 3

def mock
  @mock
end