Class: Pechkin::ConfigurationLoaderChannels
- Inherits:
-
Object
- Object
- Pechkin::ConfigurationLoaderChannels
- Includes:
- ConfigurationLoader
- Defined in:
- lib/pechkin/configuration/configuration_loader_channels.rb
Overview
Configuration loader for bot descriptions
Instance Attribute Summary collapse
-
#bots ⇒ Object
readonly
Returns the value of attribute bots.
Instance Method Summary collapse
-
#initialize(bots, views) ⇒ ConfigurationLoaderChannels
constructor
A new instance of ConfigurationLoaderChannels.
- #load_from_directory(working_directory) ⇒ Object
Methods included from ConfigurationLoader
#check_field, #create_connector, #yaml_load
Constructor Details
#initialize(bots, views) ⇒ ConfigurationLoaderChannels
Returns a new instance of ConfigurationLoaderChannels.
8 9 10 11 |
# File 'lib/pechkin/configuration/configuration_loader_channels.rb', line 8 def initialize(bots, views) @bots = bots @views = views end |
Instance Attribute Details
#bots ⇒ Object (readonly)
Returns the value of attribute bots.
6 7 8 |
# File 'lib/pechkin/configuration/configuration_loader_channels.rb', line 6 def bots @bots end |
Instance Method Details
#load_from_directory(working_directory) ⇒ Object
13 14 15 16 17 18 |
# File 'lib/pechkin/configuration/configuration_loader_channels.rb', line 13 def load_from_directory(working_directory) channels = {} load_channels_configuration(working_directory, channels) channels end |