alephant icon indicating copy to clipboard operation
alephant copied to clipboard

Sequencer fallback for table_name or raise an error?

Open Integralist opened this issue 12 years ago • 0 comments

I wasn't able to add this issue to the BBC Alephant repo as that repo is forked from this one.


https://github.com/BBC-News/alephant/blob/master/lib/alephant.rb

def initialize(opts = {})
  @sequencer = Sequencer.new(
  {
    :table_name => @table_name
  },
  @sqs_queue_id
  )
end

It seems that if table_name is not provided then the attr_accessor for table_name wont be created and so I'm not sure what value is passed to Sequencer? I assume Nil.

We need to provide a fallback in case the user doesn't supply the required values for each of the model components.

Integralist avatar Jan 17 '14 12:01 Integralist