Class: Archipelago::Configuration
- Inherits:
-
Object
- Object
- Archipelago::Configuration
- Defined in:
- lib/archipelago/configuration.rb
Instance Attribute Summary collapse
-
#allowed_redirect_hosts ⇒ Object
Returns the value of attribute allowed_redirect_hosts.
-
#authorize_by_default ⇒ Object
Returns the value of attribute authorize_by_default.
-
#current_ability ⇒ Object
Returns the value of attribute current_ability.
-
#current_user_method ⇒ Object
Returns the value of attribute current_user_method.
-
#current_user_resolver ⇒ Object
Returns the value of attribute current_user_resolver.
-
#require_stream_authorization ⇒ Object
Returns the value of attribute require_stream_authorization.
-
#root_namespace ⇒ Object
Returns the value of attribute root_namespace.
-
#stream_authorizer ⇒ Object
Returns the value of attribute stream_authorizer.
-
#strict_origin_check ⇒ Object
Returns the value of attribute strict_origin_check.
-
#version_source ⇒ Object
Returns the value of attribute version_source.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/archipelago/configuration.rb', line 16 def initialize @root_namespace = "Islands" @current_user_method = :current_user @current_user_resolver = nil @authorize_by_default = true @strict_origin_check = false @allowed_redirect_hosts = [] @version_source = -> { (Process.clock_gettime(Process::CLOCK_REALTIME, :millisecond)).to_i } @stream_authorizer = nil @require_stream_authorization = false @current_ability = nil end |
Instance Attribute Details
#allowed_redirect_hosts ⇒ Object
Returns the value of attribute allowed_redirect_hosts.
5 6 7 |
# File 'lib/archipelago/configuration.rb', line 5 def allowed_redirect_hosts @allowed_redirect_hosts end |
#authorize_by_default ⇒ Object
Returns the value of attribute authorize_by_default.
5 6 7 |
# File 'lib/archipelago/configuration.rb', line 5 def @authorize_by_default end |
#current_ability ⇒ Object
Returns the value of attribute current_ability.
5 6 7 |
# File 'lib/archipelago/configuration.rb', line 5 def current_ability @current_ability end |
#current_user_method ⇒ Object
Returns the value of attribute current_user_method.
5 6 7 |
# File 'lib/archipelago/configuration.rb', line 5 def current_user_method @current_user_method end |
#current_user_resolver ⇒ Object
Returns the value of attribute current_user_resolver.
5 6 7 |
# File 'lib/archipelago/configuration.rb', line 5 def current_user_resolver @current_user_resolver end |
#require_stream_authorization ⇒ Object
Returns the value of attribute require_stream_authorization.
5 6 7 |
# File 'lib/archipelago/configuration.rb', line 5 def @require_stream_authorization end |
#root_namespace ⇒ Object
Returns the value of attribute root_namespace.
5 6 7 |
# File 'lib/archipelago/configuration.rb', line 5 def root_namespace @root_namespace end |
#stream_authorizer ⇒ Object
Returns the value of attribute stream_authorizer.
5 6 7 |
# File 'lib/archipelago/configuration.rb', line 5 def @stream_authorizer end |
#strict_origin_check ⇒ Object
Returns the value of attribute strict_origin_check.
5 6 7 |
# File 'lib/archipelago/configuration.rb', line 5 def strict_origin_check @strict_origin_check end |
#version_source ⇒ Object
Returns the value of attribute version_source.
5 6 7 |
# File 'lib/archipelago/configuration.rb', line 5 def version_source @version_source end |