ManageIQ/manageiq-api-client

View on GitHub
lib/manageiq/api/client/mixins/custom_inspect_mixin.rb

Summary

Maintainability
A
0 mins
Test Coverage
D
62%
module CustomInspectMixin
  extend ActiveSupport::Concern

  def inspect
    pretty_print_inspect
  end

  def pretty_print(q)
    q.pp_object(self)
  end

  def pretty_print_instance_variables
    super - self.class::CUSTOM_INSPECT_EXCLUSIONS
  end
end