Class: ErpApp::ApplicationResourceLoader::DesktopOrganizerLoader
- Inherits:
-
BaseLoader
- Object
- BaseLoader
- ErpApp::ApplicationResourceLoader::DesktopOrganizerLoader
- Defined in:
- lib/erp_app/application_resource_loader/desktop_organizer_loader.rb
Instance Method Summary collapse
-
#initialize(application) ⇒ DesktopOrganizerLoader
constructor
A new instance of DesktopOrganizerLoader.
- #locate_resources(resource_type) ⇒ Object
Constructor Details
#initialize(application) ⇒ DesktopOrganizerLoader
Returns a new instance of DesktopOrganizerLoader.
6 7 8 |
# File 'lib/erp_app/application_resource_loader/desktop_organizer_loader.rb', line 6 def initialize(application) @application = application end |
Instance Method Details
#locate_resources(resource_type) ⇒ Object
10 11 12 13 14 15 |
# File 'lib/erp_app/application_resource_loader/desktop_organizer_loader.rb', line 10 def locate_resources(resource_type) @app_name = @application.internal_identifier @app_type = (@application.type == 'DesktopApplication') ? 'desktop' : 'organizer' locate_resource_files(resource_type) end |