Exception: SolidusSubscriptions::UserMismatchError

Inherits:
StandardError
  • Object
show all
Defined in:
app/models/solidus_subscriptions/user_mismatch_error.rb

Instance Method Summary collapse

Constructor Details

#initialize(installments) ⇒ UserMismatchError

Returns a new instance of UserMismatchError.



3
4
5
# File 'app/models/solidus_subscriptions/user_mismatch_error.rb', line 3

def initialize(installments)
  @installments = installments
end

Instance Method Details

#to_sObject



7
8
9
10
11
12
13
# File 'app/models/solidus_subscriptions/user_mismatch_error.rb', line 7

def to_s
  <<-MSG.squish
    Installments must have the same user to be processed as a consolidated
    installment. Could not process installments:
    #{@installments.map(&:id).join(', ')}
  MSG
end