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

Sequencer fallback for table_name or raise an error? #13

@Integralist

Description

@Integralist

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions