Class: Quarry::Mock::Setter

Inherits:
Object show all
Defined in:
lib/quarry/mock.rb

Instance Method Summary collapse

Constructor Details

#initialize(table, interface) ⇒ Setter

Returns a new instance of Setter.



34
35
36
37
# File 'lib/quarry/mock.rb', line 34

def initialize(table, interface)
  @table     = table
  @interface = interface
end

Instance Method Details

#==(result) ⇒ Object



39
40
41
# File 'lib/quarry/mock.rb', line 39

def ==(result)
  @table[@interface] = result
end