Class: RiddlerAdmin::Configuration
- Inherits:
-
Object
- Object
- RiddlerAdmin::Configuration
- Defined in:
- lib/riddler_admin/configuration.rb
Instance Attribute Summary collapse
-
#app_name ⇒ Object
Returns the value of attribute app_name.
-
#base_controller ⇒ Object
readonly
Returns the value of attribute base_controller.
-
#base_controller_name ⇒ Object
Returns the value of attribute base_controller_name.
-
#controller_authorization_block ⇒ Object
Returns the value of attribute controller_authorization_block.
-
#current_user_method ⇒ Object
Returns the value of attribute current_user_method.
-
#encrypt_preview_contexts ⇒ Object
Returns the value of attribute encrypt_preview_contexts.
-
#javascript_includes ⇒ Object
Returns the value of attribute javascript_includes.
-
#main_app_name ⇒ Object
Returns the value of attribute main_app_name.
-
#preview_context_transit_key ⇒ Object
Returns the value of attribute preview_context_transit_key.
-
#riddler_grpc_address ⇒ Object
Returns the value of attribute riddler_grpc_address.
-
#user_can_approve_block ⇒ Object
Returns the value of attribute user_can_approve_block.
-
#user_can_deploy_block ⇒ Object
Returns the value of attribute user_can_deploy_block.
-
#user_class ⇒ Object
readonly
Returns the value of attribute user_class.
-
#user_class_name ⇒ Object
Returns the value of attribute user_class_name.
-
#user_id_method ⇒ Object
Returns the value of attribute user_id_method.
-
#user_name_block ⇒ Object
Returns the value of attribute user_name_block.
-
#vault_address ⇒ Object
Returns the value of attribute vault_address.
Instance Method Summary collapse
- #encrypt_preview_contexts? ⇒ Boolean
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #remote_riddler? ⇒ Boolean
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
14 15 16 17 18 19 20 21 22 23 |
# File 'lib/riddler_admin/configuration.rb', line 14 def initialize @riddler_grpc_address = nil @encrypt_preview_contexts = false @vault_address = nil @preview_context_transit_key = "riddler-admin-preview-context" @app_name = "Riddler" @user_id_method = :id @user_name_block = -> (user) { user.name } @javascript_includes = [] end |
Instance Attribute Details
#app_name ⇒ Object
Returns the value of attribute app_name.
4 5 6 |
# File 'lib/riddler_admin/configuration.rb', line 4 def app_name @app_name end |
#base_controller ⇒ Object (readonly)
Returns the value of attribute base_controller.
11 12 13 |
# File 'lib/riddler_admin/configuration.rb', line 11 def base_controller @base_controller end |
#base_controller_name ⇒ Object
Returns the value of attribute base_controller_name.
11 12 13 |
# File 'lib/riddler_admin/configuration.rb', line 11 def base_controller_name @base_controller_name end |
#controller_authorization_block ⇒ Object
Returns the value of attribute controller_authorization_block.
4 5 6 |
# File 'lib/riddler_admin/configuration.rb', line 4 def @controller_authorization_block end |
#current_user_method ⇒ Object
Returns the value of attribute current_user_method.
4 5 6 |
# File 'lib/riddler_admin/configuration.rb', line 4 def current_user_method @current_user_method end |
#encrypt_preview_contexts ⇒ Object
Returns the value of attribute encrypt_preview_contexts.
4 5 6 |
# File 'lib/riddler_admin/configuration.rb', line 4 def encrypt_preview_contexts @encrypt_preview_contexts end |
#javascript_includes ⇒ Object
Returns the value of attribute javascript_includes.
4 5 6 |
# File 'lib/riddler_admin/configuration.rb', line 4 def javascript_includes @javascript_includes end |
#main_app_name ⇒ Object
Returns the value of attribute main_app_name.
4 5 6 |
# File 'lib/riddler_admin/configuration.rb', line 4 def main_app_name @main_app_name end |
#preview_context_transit_key ⇒ Object
Returns the value of attribute preview_context_transit_key.
4 5 6 |
# File 'lib/riddler_admin/configuration.rb', line 4 def preview_context_transit_key @preview_context_transit_key end |
#riddler_grpc_address ⇒ Object
Returns the value of attribute riddler_grpc_address.
4 5 6 |
# File 'lib/riddler_admin/configuration.rb', line 4 def riddler_grpc_address @riddler_grpc_address end |
#user_can_approve_block ⇒ Object
Returns the value of attribute user_can_approve_block.
4 5 6 |
# File 'lib/riddler_admin/configuration.rb', line 4 def user_can_approve_block @user_can_approve_block end |
#user_can_deploy_block ⇒ Object
Returns the value of attribute user_can_deploy_block.
4 5 6 |
# File 'lib/riddler_admin/configuration.rb', line 4 def user_can_deploy_block @user_can_deploy_block end |
#user_class ⇒ Object (readonly)
Returns the value of attribute user_class.
11 12 13 |
# File 'lib/riddler_admin/configuration.rb', line 11 def user_class @user_class end |
#user_class_name ⇒ Object
Returns the value of attribute user_class_name.
11 12 13 |
# File 'lib/riddler_admin/configuration.rb', line 11 def user_class_name @user_class_name end |
#user_id_method ⇒ Object
Returns the value of attribute user_id_method.
4 5 6 |
# File 'lib/riddler_admin/configuration.rb', line 4 def user_id_method @user_id_method end |
#user_name_block ⇒ Object
Returns the value of attribute user_name_block.
4 5 6 |
# File 'lib/riddler_admin/configuration.rb', line 4 def user_name_block @user_name_block end |
#vault_address ⇒ Object
Returns the value of attribute vault_address.
4 5 6 |
# File 'lib/riddler_admin/configuration.rb', line 4 def vault_address @vault_address end |
Instance Method Details
#encrypt_preview_contexts? ⇒ Boolean
29 30 31 |
# File 'lib/riddler_admin/configuration.rb', line 29 def encrypt_preview_contexts? !!encrypt_preview_contexts end |
#remote_riddler? ⇒ Boolean
25 26 27 |
# File 'lib/riddler_admin/configuration.rb', line 25 def remote_riddler? riddler_grpc_address.to_s.strip != "" end |