Class: Maglev::KnowledgeConfig::ContentSource

Inherits:
Struct
  • Object
show all
Defined in:
lib/maglev/knowledge_config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



14
15
16
# File 'lib/maglev/knowledge_config.rb', line 14

def name
  @name
end