module Datamappify::Entity::Inspectable

Public Class Methods

included(klass) click to toggle source
# File lib/datamappify/entity/inspectable.rb, line 4
def self.included(klass)
  klass.extend ClassMethods
end

Public Instance Methods

inspect() click to toggle source
# File lib/datamappify/entity/inspectable.rb, line 8
def inspect
  inspectable = self.attributes.map do |name, value|
    "#{name}: #{value.inspect}"
  end.join(", ")

  "#<#{self.class} #{inspectable}>"
end