Class: Mengpaneel::Strategy::Base

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(all_calls, controller = nil) ⇒ Base

Returns a new instance of Base.


7
8
9
10
# File 'lib/mengpaneel/strategy/base.rb', line 7

def initialize(all_calls, controller = nil)
  @all_calls  = all_calls
  @controller = controller
end

Instance Attribute Details

#all_callsObject (readonly)

Returns the value of attribute all_calls


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

def all_calls
  @all_calls
end

#controllerObject (readonly)

Returns the value of attribute controller


5
6
7
# File 'lib/mengpaneel/strategy/base.rb', line 5

def controller
  @controller
end

Instance Method Details

#runObject

Raises:

  • (NotImplementedError)

12
13
14
# File 'lib/mengpaneel/strategy/base.rb', line 12

def run
  raise NotImplementedError
end