Class: DropletKit::BaseModel

Inherits:
Object
  • Object
show all
Defined in:
lib/droplet_kit/models/base_model.rb

Instance Method Summary collapse

Instance Method Details

#inspectObject



8
9
10
11
# File 'lib/droplet_kit/models/base_model.rb', line 8

def inspect
  values = Hash[instance_variables.map { |name| [name, instance_variable_get(name)] } ]
  "<#{self.class.name} #{values}>"
end