Class: Archipelago::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/archipelago/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_hostsObject

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_defaultObject

Returns the value of attribute authorize_by_default.



5
6
7
# File 'lib/archipelago/configuration.rb', line 5

def authorize_by_default
  @authorize_by_default
end

#current_abilityObject

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_methodObject

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_resolverObject

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_authorizationObject

Returns the value of attribute require_stream_authorization.



5
6
7
# File 'lib/archipelago/configuration.rb', line 5

def require_stream_authorization
  @require_stream_authorization
end

#root_namespaceObject

Returns the value of attribute root_namespace.



5
6
7
# File 'lib/archipelago/configuration.rb', line 5

def root_namespace
  @root_namespace
end

#stream_authorizerObject

Returns the value of attribute stream_authorizer.



5
6
7
# File 'lib/archipelago/configuration.rb', line 5

def stream_authorizer
  @stream_authorizer
end

#strict_origin_checkObject

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_sourceObject

Returns the value of attribute version_source.



5
6
7
# File 'lib/archipelago/configuration.rb', line 5

def version_source
  @version_source
end