Class: Maglev::KnowledgeConfig::ContentSource
- Inherits:
-
Struct
- Object
- Struct
- Maglev::KnowledgeConfig::ContentSource
- Defined in:
- lib/maglev/knowledge_config.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name) ⇒ ContentSource
constructor
A new instance of ContentSource.
Constructor Details
#initialize(name) ⇒ ContentSource
Returns a new instance of ContentSource.
15 16 17 18 |
# File 'lib/maglev/knowledge_config.rb', line 15 def initialize(name) super(name.to_s) freeze end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name
14 15 16 |
# File 'lib/maglev/knowledge_config.rb', line 14 def name @name end |