Class: EventQ::Configuration
- Inherits:
-
Object
- Object
- EventQ::Configuration
- Defined in:
- lib/eventq_base/configuration.rb
Class Method Summary collapse
- .serialization_provider ⇒ Object
- .serialization_provider=(value) ⇒ Object
- .signature_provider ⇒ Object
- .signature_provider=(value) ⇒ Object
- .signature_secret ⇒ Object
- .signature_secret=(value) ⇒ Object
Class Method Details
.serialization_provider ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/eventq_base/configuration.rb', line 8 def self.serialization_provider if RUBY_PLATFORM =~ /java/ @serialization_provider ||= EventQ::SerializationProviders::JSON_PROVIDER else @serialization_provider ||= EventQ::SerializationProviders::OJ_PROVIDER end end |
.serialization_provider=(value) ⇒ Object
4 5 6 |
# File 'lib/eventq_base/configuration.rb', line 4 def self.serialization_provider=(value) @serialization_provider = value end |
.signature_provider ⇒ Object
20 21 22 |
# File 'lib/eventq_base/configuration.rb', line 20 def self.signature_provider @signature_provider ||= EventQ::SignatureProviders::SHA256 end |
.signature_provider=(value) ⇒ Object
16 17 18 |
# File 'lib/eventq_base/configuration.rb', line 16 def self.signature_provider=(value) @signature_provider = value end |
.signature_secret ⇒ Object
28 29 30 |
# File 'lib/eventq_base/configuration.rb', line 28 def self.signature_secret @signature_secret end |
.signature_secret=(value) ⇒ Object
24 25 26 |
# File 'lib/eventq_base/configuration.rb', line 24 def self.signature_secret=(value) @signature_secret = value end |