Class: WampRails::Controller::BaseController
- Inherits:
-
Object
- Object
- WampRails::Controller::BaseController
- Defined in:
- lib/wamp_rails/controllers/base_controller.rb
Direct Known Subclasses
Instance Method Summary collapse
- #args ⇒ Object
- #client ⇒ Object
- #details ⇒ Object
- #handler ⇒ Object
-
#initialize(args, kwargs, details, client) ⇒ BaseController
constructor
A new instance of BaseController.
- #kwargs ⇒ Object
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
#args ⇒ Object
16 17 18 |
# File 'lib/wamp_rails/controllers/base_controller.rb', line 16 def args @args end |
#client ⇒ Object
28 29 30 |
# File 'lib/wamp_rails/controllers/base_controller.rb', line 28 def client @client end |
#details ⇒ Object
24 25 26 |
# File 'lib/wamp_rails/controllers/base_controller.rb', line 24 def details @details end |
#handler ⇒ Object
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 |
#kwargs ⇒ Object
20 21 22 |
# File 'lib/wamp_rails/controllers/base_controller.rb', line 20 def kwargs @kwargs end |