Class: ProductTours::Configuration
- Inherits:
-
Object
- Object
- ProductTours::Configuration
- Defined in:
- lib/product_tours/configuration.rb
Instance Attribute Summary collapse
-
#admin_layout ⇒ Object
Returns the value of attribute admin_layout.
-
#authorize_admin ⇒ Object
Returns the value of attribute authorize_admin.
-
#enabled ⇒ Object
Returns the value of attribute enabled.
-
#mount_path ⇒ Object
Returns the value of attribute mount_path.
-
#storage_service ⇒ Object
Returns the value of attribute storage_service.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #widget_endpoint ⇒ Object
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
8 9 10 11 12 13 14 |
# File 'lib/product_tours/configuration.rb', line 8 def initialize @enabled = ->(_request) { true } @authorize_admin = ->(_request) { Rails.env.development? } @admin_layout = 'product_tours/application' @mount_path = '/product_tours' @storage_service = nil end |
Instance Attribute Details
#admin_layout ⇒ Object
Returns the value of attribute admin_layout.
5 6 7 |
# File 'lib/product_tours/configuration.rb', line 5 def admin_layout @admin_layout end |
#authorize_admin ⇒ Object
Returns the value of attribute authorize_admin.
5 6 7 |
# File 'lib/product_tours/configuration.rb', line 5 def @authorize_admin end |
#enabled ⇒ Object
Returns the value of attribute enabled.
5 6 7 |
# File 'lib/product_tours/configuration.rb', line 5 def enabled @enabled end |
#mount_path ⇒ Object
Returns the value of attribute mount_path.
5 6 7 |
# File 'lib/product_tours/configuration.rb', line 5 def mount_path @mount_path end |
#storage_service ⇒ Object
Returns the value of attribute storage_service.
5 6 7 |
# File 'lib/product_tours/configuration.rb', line 5 def storage_service @storage_service end |
Instance Method Details
#widget_endpoint ⇒ Object
16 |
# File 'lib/product_tours/configuration.rb', line 16 def = "#{mount_path.to_s.chomp('/')}/widget" |