podemos-info/census

View on GitHub
app/queries/payment_method_processing_issues.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

class PaymentMethodProcessingIssues < Rectify::Query
  def self.for(payment_method)
    new(payment_method).query
  end

  def initialize(payment_method)
    @payment_method = payment_method
  end

  def query
    @payment_method.issues.where(issue_type: :processed_response_code)
  end
end