Class: ProtoPharm::RSpec::ActionStubProxy::Expectation

Inherits:
Object
  • Object
show all
Defined in:
lib/proto_pharm/rspec/action_stub_proxy.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(method, args, kwargs) ⇒ Expectation

Returns a new instance of Expectation.



50
51
52
53
54
# File 'lib/proto_pharm/rspec/action_stub_proxy.rb', line 50

def initialize(method, args, kwargs)
  @method = method
  @args = args
  @kwargs = kwargs
end

Instance Attribute Details

#argsObject (readonly)

Returns the value of attribute args.



48
49
50
# File 'lib/proto_pharm/rspec/action_stub_proxy.rb', line 48

def args
  @args
end

#kwargsObject (readonly)

Returns the value of attribute kwargs.



48
49
50
# File 'lib/proto_pharm/rspec/action_stub_proxy.rb', line 48

def kwargs
  @kwargs
end

#methodObject (readonly)

Returns the value of attribute method.



48
49
50
# File 'lib/proto_pharm/rspec/action_stub_proxy.rb', line 48

def method
  @method
end