lib/mymoip/payments/credit_card_payment.rb

Summary

Maintainability
A
1 hr
Test Coverage

Method to_json has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    def to_json(formatter = MyMoip::Formatter)
      raise InvalidCreditCard, 'No credit card provided.' if credit_card.nil?
      raise InvalidCreditCard                             if credit_card.invalid?

      json = {
Severity: Minor
Found in lib/mymoip/payments/credit_card_payment.rb - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status