module Superstore::Core
Public Instance Methods
inspect()
click to toggle source
# File lib/superstore/core.rb, line 5 def inspect inspection = ["#{self.class.primary_key}: #{id.inspect}"] (self.class.attribute_names - [self.class.primary_key]).each do |name| value = send(name) if value.present? || value === false inspection << "#{name}: #{attribute_for_inspect(name)}" end end "#<#{self.class} #{inspection * ', '}>" end