class Erratum::Errors::DuplicateAuthentication

Attributes

provider[RW]
provider_user_id[RW]
user_id[RW]

Public Instance Methods

detail() click to toggle source
# File lib/erratum/errors/authentication/duplicate_authentication.rb, line 24
  def detail
    <<~HEREDOC.chomp.tr("\n", ' ')
      The authentication you attempted to register has already been registered
      by another user. We do not currently support allowing multiple users to be
      connected to the same authentication.
    HEREDOC
  end
http_status() click to toggle source
# File lib/erratum/errors/authentication/duplicate_authentication.rb, line 16
def http_status
  409
end
source() click to toggle source
# File lib/erratum/errors/authentication/duplicate_authentication.rb, line 32
def source
  {
    'provider'         => provider,
    'provider_user_id' => provider_user_id,
    'user_id'          => user_id,
  }
end
title() click to toggle source
# File lib/erratum/errors/authentication/duplicate_authentication.rb, line 20
def title
  'Duplicate Authentication'
end