Class: Cat

Inherits:
ModelBase show all
Defined in:
lib/reloj/skeletons/old_example/app/models/cat.rb

Instance Method Summary collapse

Methods inherited from ModelBase

all, #attribute_values, #attributes, columns, #destroy, finalize!, find, #initialize, #insert, #not_id_attribute_values, parse_all, #save, table_name, table_name=, #update

Methods included from Searchable

#where

Methods included from Associatable

#assoc_options, #belongs_to, #has_many, #has_one_through

Constructor Details

This class inherits a constructor from ModelBase

Instance Method Details

#inspectObject



3
4
5
# File 'lib/reloj/skeletons/old_example/app/models/cat.rb', line 3

def inspect
  { name: self.name }.inspect
end