class SmartEnum::DuplicateIDError

Attributes

existing[R]
id[R]

Public Class Methods

new(type:,id:,attributes:,existing:) click to toggle source
Calls superclass method SmartEnum::RegistrationError::new
# File lib/smart_enum.rb, line 196
def initialize(type:,id:,attributes:,existing:)
  @id = id
  @existing = existing
  super("The ID #{@id} has already been registered with #{existing}", type: type, attributes: attributes)
end