Class: Proctor::Services
- Inherits:
-
Object
- Object
- Proctor::Services
- Defined in:
- lib/proctor/services.rb
Instance Method Summary collapse
- #all ⇒ Object
- #find_by_handle(handle) ⇒ Object
- #find_by_name(name) ⇒ Object
-
#initialize(app_files, params) ⇒ Services
constructor
A new instance of Services.
- #names ⇒ Object
Constructor Details
Instance Method Details
#all ⇒ Object
12 13 14 |
# File 'lib/proctor/services.rb', line 12 def all @all.sort {|a,b| a.name <=> b.name} end |
#find_by_handle(handle) ⇒ Object
24 25 |
# File 'lib/proctor/services.rb', line 24 def find_by_handle(handle) end |
#find_by_name(name) ⇒ Object
20 21 22 |
# File 'lib/proctor/services.rb', line 20 def find_by_name(name) @all.find {|service| service.name == name} end |
#names ⇒ Object
16 17 18 |
# File 'lib/proctor/services.rb', line 16 def names @all.map {|s| s.name}.sort end |