Class: ExpoTurbo::Rails::Cable::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/expo_turbo/rails/cable/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(credential_extractor:, subject_resolver:, subscription_authorizer:, subscription_error_reporter:) ⇒ Configuration

Returns a new instance of Configuration.



9
10
11
12
13
14
15
# File 'lib/expo_turbo/rails/cable/configuration.rb', line 9

def initialize(credential_extractor:, subject_resolver:, subscription_authorizer:, subscription_error_reporter:)
  @credential_extractor = callable!(credential_extractor, "credential_extractor")
  @subject_resolver = callable!(subject_resolver, "subject_resolver")
  @subscription_authorizer = callable!(subscription_authorizer, "subscription_authorizer")
  @subscription_error_reporter = callable!(subscription_error_reporter, "subscription_error_reporter")
  freeze
end

Instance Attribute Details

#credential_extractorObject (readonly)

Returns the value of attribute credential_extractor.



7
8
9
# File 'lib/expo_turbo/rails/cable/configuration.rb', line 7

def credential_extractor
  @credential_extractor
end

#subject_resolverObject (readonly)

Returns the value of attribute subject_resolver.



7
8
9
# File 'lib/expo_turbo/rails/cable/configuration.rb', line 7

def subject_resolver
  @subject_resolver
end

#subscription_authorizerObject (readonly)

Returns the value of attribute subscription_authorizer.



7
8
9
# File 'lib/expo_turbo/rails/cable/configuration.rb', line 7

def subscription_authorizer
  @subscription_authorizer
end

#subscription_error_reporterObject (readonly)

Returns the value of attribute subscription_error_reporter.



7
8
9
# File 'lib/expo_turbo/rails/cable/configuration.rb', line 7

def subscription_error_reporter
  @subscription_error_reporter
end