class WAB::OpenController
This controller exposes all possible methods expected in a WAB::Controller
subclass, as public methods.
Since those methods are private in the superclass, they need to be redefined as public methods to enable the concerned functionality.
For example, if a controller is intented to provide only read-access, then just the read
method would need to be exposed as a public method. The remaining methods may remain private.
Public Class Methods
new(shell)
click to toggle source
Calls superclass method
WAB::Controller::new
# File lib/wab/open_controller.rb, line 15 def initialize(shell) super(shell) end
Public Instance Methods
create(path, query, data)
click to toggle source
Calls superclass method
WAB::Controller#create
# File lib/wab/open_controller.rb, line 26 def create(path, query, data) super end
delete(path, query)
click to toggle source
Calls superclass method
WAB::Controller#delete
# File lib/wab/open_controller.rb, line 38 def delete(path, query) super end
handle(data)
click to toggle source
Catch requests that are not one of the below CRUD methods.
Raises as it has to be handled specially.
# File lib/wab/open_controller.rb, line 22 def handle(data) raise NotImplementedError.new end
read(path, query)
click to toggle source
Calls superclass method
WAB::Controller#read
# File lib/wab/open_controller.rb, line 30 def read(path, query) super end
update(path, query, data)
click to toggle source
Calls superclass method
WAB::Controller#update
# File lib/wab/open_controller.rb, line 34 def update(path, query, data) super end