Code-climate duplicate code fixes (#382)
* Code-climate duplicate code fixes * Spec for accounts controller
This commit is contained in:
@@ -2,11 +2,7 @@
|
||||
|
||||
class AccountBuilder
|
||||
include CustomExceptions::Account
|
||||
|
||||
def initialize(params)
|
||||
@account_name = params[:account_name]
|
||||
@email = params[:email]
|
||||
end
|
||||
pattr_initialize [:account_name!, :email!]
|
||||
|
||||
def perform
|
||||
validate_email
|
||||
|
||||
Reference in New Issue
Block a user