Class: Qyu::Config
- Inherits:
-
Object
- Object
- Qyu::Config
- Defined in:
- lib/qyu/config.rb
Overview
Qyu::Config
Defined Under Namespace
Classes: QueueConfig, ServiceConfig, StoreConfig
Instance Attribute Summary collapse
-
#queue ⇒ Object
readonly
Returns the value of attribute queue.
-
#store ⇒ Object
readonly
Returns the value of attribute store.
Instance Method Summary collapse
-
#initialize(queue:, store:) ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize(queue:, store:) ⇒ Config
Returns a new instance of Config.
27 28 29 30 31 32 33 |
# File 'lib/qyu/config.rb', line 27 def initialize(queue:, store:) fail 'Invalid message queue configuration' unless QueueConfig.valid?(queue) fail 'Invalid state store configuration' unless StoreConfig.valid?(store) @queue = queue @store = store end |
Instance Attribute Details
#queue ⇒ Object (readonly)
Returns the value of attribute queue.
6 7 8 |
# File 'lib/qyu/config.rb', line 6 def queue @queue end |
#store ⇒ Object (readonly)
Returns the value of attribute store.
6 7 8 |
# File 'lib/qyu/config.rb', line 6 def store @store end |