Class: Alephant::Publisher::Options

Inherits:
Object
  • Object
show all
Defined in:
lib/alephant/publisher/options.rb

Constant Summary collapse

QUEUE_OPTS =
[
  :receive_wait_time,
  :sqs_queue_url,
  :visibility_timeout
]
WRITER_OPTS =
[
  :lookup_table_name,
  :msg_vary_id_path,
  :renderer_id,
  :s3_bucket_id,
  :s3_object_path,
  :sequence_id_path,
  :sequencer_table_name,
  :view_path
]

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeOptions

Returns a new instance of Options.



28
29
30
31
# File 'lib/alephant/publisher/options.rb', line 28

def initialize
  @queue  = {}
  @writer = {}
end

Instance Attribute Details

#queueObject (readonly)

Returns the value of attribute queue.



9
10
11
# File 'lib/alephant/publisher/options.rb', line 9

def queue
  @queue
end

#writerObject (readonly)

Returns the value of attribute writer.



9
10
11
# File 'lib/alephant/publisher/options.rb', line 9

def writer
  @writer
end

Instance Method Details

#add_queue(opts) ⇒ Object



33
34
35
# File 'lib/alephant/publisher/options.rb', line 33

def add_queue(opts)
  execute @queue, QUEUE_OPTS, opts
end

#add_writer(opts) ⇒ Object



37
38
39
# File 'lib/alephant/publisher/options.rb', line 37

def add_writer(opts)
  execute @writer, WRITER_OPTS, opts
end