Class: Dige::Klass
Instance Attribute Summary collapse
-
#associations_count ⇒ Object
Returns the value of attribute associations_count.
-
#class_name ⇒ Object
Returns the value of attribute class_name.
-
#columns ⇒ Object
Returns the value of attribute columns.
-
#table_name ⇒ Object
Returns the value of attribute table_name.
Instance Method Summary collapse
Methods included from ClassBase
Instance Attribute Details
#associations_count ⇒ Object
Returns the value of attribute associations_count.
3 4 5 |
# File 'lib/dige/klass.rb', line 3 def associations_count @associations_count end |
#class_name ⇒ Object
Returns the value of attribute class_name.
3 4 5 |
# File 'lib/dige/klass.rb', line 3 def class_name @class_name end |
#columns ⇒ Object
Returns the value of attribute columns.
3 4 5 |
# File 'lib/dige/klass.rb', line 3 def columns @columns end |
#table_name ⇒ Object
Returns the value of attribute table_name.
3 4 5 |
# File 'lib/dige/klass.rb', line 3 def table_name @table_name end |
Instance Method Details
#==(objekt) ⇒ Object
9 10 11 12 |
# File 'lib/dige/klass.rb', line 9 def ==(objekt) self.class_name == objekt.class_name && self.table_name == objekt.table_name end |
#debug_inspect ⇒ Object
5 6 7 |
# File 'lib/dige/klass.rb', line 5 def debug_inspect "#{class_name}(#{table_name})[ASSOCIATIONS_COUNT: #{associations_count}, COLUMNS: #{columns.join(",")}]" end |