Class: KDomain::DomainModel::DomainStatistics

Inherits:
Object
  • Object
show all
Defined in:
lib/k_domain/schemas/domain/old/domain_statistics.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(domain) ⇒ DomainStatistics

Returns a new instance of DomainStatistics.



14
15
16
17
18
19
20
21
# File 'lib/k_domain/schemas/domain/old/domain_statistics.rb', line 14

def initialize(domain)
  @domain = domain
  # @column_counts = OpenStruct.new(meta[:column_counts])
  # @code_counts = OpenStruct.new(meta[:code_counts])
  # @code_dsl_counts = OpenStruct.new(meta[:code_dsl_counts])
  # @data_counts = OpenStruct.new(meta[:data_counts])
  # @issues = meta[:issues]
end

Instance Attribute Details

#code_countsObject

Returns the value of attribute code_counts.



9
10
11
# File 'lib/k_domain/schemas/domain/old/domain_statistics.rb', line 9

def code_counts
  @code_counts
end

#code_dsl_countsObject

Returns the value of attribute code_dsl_counts.



10
11
12
# File 'lib/k_domain/schemas/domain/old/domain_statistics.rb', line 10

def code_dsl_counts
  @code_dsl_counts
end

#column_countsObject

Returns the value of attribute column_counts.



8
9
10
# File 'lib/k_domain/schemas/domain/old/domain_statistics.rb', line 8

def column_counts
  @column_counts
end

#data_countsObject

Returns the value of attribute data_counts.



11
12
13
# File 'lib/k_domain/schemas/domain/old/domain_statistics.rb', line 11

def data_counts
  @data_counts
end

#domainObject (readonly)

Returns the value of attribute domain.



7
8
9
# File 'lib/k_domain/schemas/domain/old/domain_statistics.rb', line 7

def domain
  @domain
end

#issuesObject

Returns the value of attribute issues.



12
13
14
# File 'lib/k_domain/schemas/domain/old/domain_statistics.rb', line 12

def issues
  @issues
end

Instance Method Details



23
24
25
26
# File 'lib/k_domain/schemas/domain/old/domain_statistics.rb', line 23

def print
  log.warn('Statistics ::')
  log.kv('Database Entities', domain.entities.length)
end