Class: Qyu::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/qyu/config.rb

Overview

Qyu::Config

Defined Under Namespace

Classes: QueueConfig, ServiceConfig, StoreConfig

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(queue:, store:) ⇒ Config


38
39
40
41
42
43
44
# File 'lib/qyu/config.rb', line 38

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

#queueObject (readonly)

Returns the value of attribute queue


6
7
8
# File 'lib/qyu/config.rb', line 6

def queue
  @queue
end

#storeObject (readonly)

Returns the value of attribute store


6
7
8
# File 'lib/qyu/config.rb', line 6

def store
  @store
end