module SP::Duh::JSONAPI::Model::Concerns::Model

Public Instance Methods

inspect() click to toggle source

Returns the contents of the record as a nicely formatted string.

# File lib/sp/duh/jsonapi/model/concerns/model.rb, line 31
def inspect
  # attrs = self.class.attributes
  inspection = self.class.attributes.collect { |name| "#{name}: #{attribute_for_inspect(name)}" }.compact.join(", ")
  "#<#{self.class} #{inspection}>"
end