Class: ActionCase::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/action_case/base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(listener = nil) ⇒ Base

Returns a new instance of Base.


6
7
8
# File 'lib/action_case/base.rb', line 6

def initialize(listener = nil)
  @listener = listener
end

Instance Attribute Details

#listenerObject

Returns the value of attribute listener


4
5
6
# File 'lib/action_case/base.rb', line 4

def listener
  @listener
end

Instance Method Details

#resourceObject


10
11
12
# File 'lib/action_case/base.rb', line 10

def resource
  raise "ActionCase::Base#resource must be overridden"
end