Class: KnowledgeClass::KnowledgeClassDescription

Inherits:
Object
  • Object
show all
Defined in:
lib/cirrocumulus/facts.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(klass) ⇒ KnowledgeClassDescription

Returns a new instance of KnowledgeClassDescription.



49
50
51
52
# File 'lib/cirrocumulus/facts.rb', line 49

def initialize(klass)
  @name = klass.name
  @properties = []
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



45
46
47
# File 'lib/cirrocumulus/facts.rb', line 45

def name
  @name
end

#primary_keyObject

Returns the value of attribute primary_key.



46
47
48
# File 'lib/cirrocumulus/facts.rb', line 46

def primary_key
  @primary_key
end

#propertiesObject (readonly)

Returns the value of attribute properties.



47
48
49
# File 'lib/cirrocumulus/facts.rb', line 47

def properties
  @properties
end