Class: WampRails::Controller::BaseController

Inherits:
Object
  • Object
show all
Defined in:
lib/wamp_rails/controllers/base_controller.rb

Direct Known Subclasses

Procedure, Subscription

Instance Method Summary collapse

Constructor Details

#initialize(args, kwargs, details, client) ⇒ BaseController

Returns a new instance of BaseController.



5
6
7
8
9
10
# File 'lib/wamp_rails/controllers/base_controller.rb', line 5

def initialize(args, kwargs, details, client)
  @args = args || []
  @kwargs = kwargs || {}
  @details = details || {}
  @client = client
end

Instance Method Details

#argsObject



16
17
18
# File 'lib/wamp_rails/controllers/base_controller.rb', line 16

def args
  @args
end

#clientObject



28
29
30
# File 'lib/wamp_rails/controllers/base_controller.rb', line 28

def client
  @client
end

#detailsObject



24
25
26
# File 'lib/wamp_rails/controllers/base_controller.rb', line 24

def details
  @details
end

#handlerObject

Raises:



12
13
14
# File 'lib/wamp_rails/controllers/base_controller.rb', line 12

def handler
  raise WampRails::Error.new('WampRails::Controller::Base is an abstract class. "handler" must be defined')
end

#kwargsObject



20
21
22
# File 'lib/wamp_rails/controllers/base_controller.rb', line 20

def kwargs
  @kwargs
end