Exception: SolidusSubscriptions::UserMismatchError
- Inherits:
-
StandardError
- Object
- StandardError
- SolidusSubscriptions::UserMismatchError
- Defined in:
- app/models/solidus_subscriptions/user_mismatch_error.rb
Instance Method Summary collapse
-
#initialize(installments) ⇒ UserMismatchError
constructor
A new instance of UserMismatchError.
- #to_s ⇒ Object
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_s ⇒ Object
7 8 9 10 11 12 13 |
# File 'app/models/solidus_subscriptions/user_mismatch_error.rb', line 7 def to_s " Installments must have the same user to be processed as a consolidated\n installment. Could not process installments:\n \#{@installments.map(&:id).join(', ')}\n MSG\nend\n".squish |