Class: ZendeskAppsSupport::Installed
- Inherits:
-
Object
- Object
- ZendeskAppsSupport::Installed
- Extended by:
- Gem::Deprecate
- Defined in:
- lib/zendesk_apps_support/installed.rb
Constant Summary collapse
- INSTALLED_TEMPLATE =
Erubis::Eruby.new(File.read(File.('../assets/installed.js.erb', __FILE__)))
Instance Method Summary collapse
- #compile(options = {}) ⇒ Object (also: #compile_js)
-
#initialize(appsjs, installations = []) ⇒ Installed
constructor
A new instance of Installed.
Constructor Details
#initialize(appsjs, installations = []) ⇒ Installed
Returns a new instance of Installed.
10 11 12 13 |
# File 'lib/zendesk_apps_support/installed.rb', line 10 def initialize(appsjs, installations = []) @appsjs = appsjs @installations = installations end |
Instance Method Details
#compile(options = {}) ⇒ Object Also known as: compile_js
15 16 17 18 19 20 21 |
# File 'lib/zendesk_apps_support/installed.rb', line 15 def compile( = {}) INSTALLED_TEMPLATE.result( appsjs: @appsjs, installations: @installations, installation_orders: .fetch(:installation_orders, {}) ) end |