Class: Alephant::Publisher::Options
- Inherits:
-
Object
- Object
- Alephant::Publisher::Options
- 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
-
#queue ⇒ Object
readonly
Returns the value of attribute queue.
-
#writer ⇒ Object
readonly
Returns the value of attribute writer.
Instance Method Summary collapse
- #add_queue(opts) ⇒ Object
- #add_writer(opts) ⇒ Object
-
#initialize ⇒ Options
constructor
A new instance of Options.
Constructor Details
#initialize ⇒ Options
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
#queue ⇒ Object (readonly)
Returns the value of attribute queue.
9 10 11 |
# File 'lib/alephant/publisher/options.rb', line 9 def queue @queue end |
#writer ⇒ Object (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 |