Class: Dige::Klass

Inherits:
Object
  • Object
show all
Includes:
ClassBase
Defined in:
lib/dige/klass.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from ClassBase

#initialize

Instance Attribute Details

#associations_countObject

Returns the value of attribute associations_count.



3
4
5
# File 'lib/dige/klass.rb', line 3

def associations_count
  @associations_count
end

#class_nameObject

Returns the value of attribute class_name.



3
4
5
# File 'lib/dige/klass.rb', line 3

def class_name
  @class_name
end

#columnsObject

Returns the value of attribute columns.



3
4
5
# File 'lib/dige/klass.rb', line 3

def columns
  @columns
end

#table_nameObject

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_inspectObject



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