Exception: CleverSequence::PostgresBackend::SequenceNotFoundError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/demo_mode/clever_sequence/postgres_backend.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(sequence_name:, klass:, attribute:) ⇒ SequenceNotFoundError

Returns a new instance of SequenceNotFoundError.



10
11
12
13
14
15
16
17
18
# File 'lib/demo_mode/clever_sequence/postgres_backend.rb', line 10

def initialize(sequence_name:, klass:, attribute:)
  @sequence_name = sequence_name
  @klass = klass
  @attribute = attribute

  super(
    "Sequence '#{sequence_name}' not found for #{klass.name}##{attribute}. "
  )
end

Instance Attribute Details

#attributeObject (readonly)

Returns the value of attribute attribute.



8
9
10
# File 'lib/demo_mode/clever_sequence/postgres_backend.rb', line 8

def attribute
  @attribute
end

#klassObject (readonly)

Returns the value of attribute klass.



8
9
10
# File 'lib/demo_mode/clever_sequence/postgres_backend.rb', line 8

def klass
  @klass
end

#sequence_nameObject (readonly)

Returns the value of attribute sequence_name.



8
9
10
# File 'lib/demo_mode/clever_sequence/postgres_backend.rb', line 8

def sequence_name
  @sequence_name
end