Class: KDomain::DomainModel::DomainStatistics
- Inherits:
-
Object
- Object
- KDomain::DomainModel::DomainStatistics
- Defined in:
- lib/k_domain/schemas/domain/old/domain_statistics.rb
Instance Attribute Summary collapse
-
#code_counts ⇒ Object
Returns the value of attribute code_counts.
-
#code_dsl_counts ⇒ Object
Returns the value of attribute code_dsl_counts.
-
#column_counts ⇒ Object
Returns the value of attribute column_counts.
-
#data_counts ⇒ Object
Returns the value of attribute data_counts.
-
#domain ⇒ Object
readonly
Returns the value of attribute domain.
-
#issues ⇒ Object
Returns the value of attribute issues.
Instance Method Summary collapse
-
#initialize(domain) ⇒ DomainStatistics
constructor
A new instance of DomainStatistics.
- #print ⇒ Object
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_counts ⇒ Object
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_counts ⇒ Object
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_counts ⇒ Object
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_counts ⇒ Object
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 |
#domain ⇒ Object (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 |
#issues ⇒ Object
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
#print ⇒ Object
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 |