Exception: MockSuey::MockContract::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/mock_suey/mock_contract.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(contract, msg) ⇒ Error

Returns a new instance of Error.



12
13
14
15
# File 'lib/mock_suey/mock_contract.rb', line 12

def initialize(contract, msg)
  @contract = contract
  super(msg)
end

Instance Attribute Details

#contractObject (readonly)

Returns the value of attribute contract.



10
11
12
# File 'lib/mock_suey/mock_contract.rb', line 10

def contract
  @contract
end