Class: Inferno::Web::Controllers::Controller
- Inherits:
-
Hanami::Action
- Object
- Hanami::Action
- Inferno::Web::Controllers::Controller
show all
- Defined in:
- lib/inferno/apps/web/controllers/controller.rb
Direct Known Subclasses
Requests::Show, TestRuns::Create, TestRuns::Destroy, TestRuns::Results::Index, TestRuns::Show, TestSessions::ClientShow, TestSessions::Create, TestSessions::LastTestRun, TestSessions::Results::Index, TestSessions::SessionData::ApplyPreset, TestSessions::SessionData::Index, TestSessions::Show, TestSuites::CheckConfiguration, TestSuites::Index, TestSuites::Show
Class Method Summary
collapse
Class Method Details
.call ⇒ Object
7
8
9
|
# File 'lib/inferno/apps/web/controllers/controller.rb', line 7
def self.call(...)
new.call(...)
end
|
.resource_class ⇒ Object
32
33
34
|
# File 'lib/inferno/apps/web/controllers/controller.rb', line 32
def self.resource_class
name.split('::')[-2].singularize
end
|
.resource_name ⇒ Object
28
29
30
|
# File 'lib/inferno/apps/web/controllers/controller.rb', line 28
def self.resource_name
name.split('::')[-2].underscore
end
|