Skip to content
This repository has been archived by the owner on Nov 29, 2024. It is now read-only.

Sequencer fallback for table_name or raise an error? #13

Open
Integralist opened this issue Jan 17, 2014 · 0 comments
Open

Sequencer fallback for table_name or raise an error? #13

Integralist opened this issue Jan 17, 2014 · 0 comments

Comments

@Integralist
Copy link
Contributor

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant