Class: ExpoTurbo::Rails::Cable::Configuration
- Inherits:
-
Object
- Object
- ExpoTurbo::Rails::Cable::Configuration
- Defined in:
- lib/expo_turbo/rails/cable/configuration.rb
Instance Attribute Summary collapse
-
#credential_extractor ⇒ Object
readonly
Returns the value of attribute credential_extractor.
-
#subject_resolver ⇒ Object
readonly
Returns the value of attribute subject_resolver.
-
#subscription_authorizer ⇒ Object
readonly
Returns the value of attribute subscription_authorizer.
-
#subscription_error_reporter ⇒ Object
readonly
Returns the value of attribute subscription_error_reporter.
Instance Method Summary collapse
-
#initialize(credential_extractor:, subject_resolver:, subscription_authorizer:, subscription_error_reporter:) ⇒ Configuration
constructor
A new instance of Configuration.
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_error_reporter = callable!(subscription_error_reporter, "subscription_error_reporter") freeze end |
Instance Attribute Details
#credential_extractor ⇒ Object (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_resolver ⇒ Object (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_authorizer ⇒ Object (readonly)
Returns the value of attribute subscription_authorizer.
7 8 9 |
# File 'lib/expo_turbo/rails/cable/configuration.rb', line 7 def @subscription_authorizer end |
#subscription_error_reporter ⇒ Object (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 |