Class: Pechkin::ConfigurationLoaderChannels

Inherits:
Object
  • Object
show all
Includes:
ConfigurationLoader
Defined in:
lib/pechkin/configuration/configuration_loader_channels.rb

Overview

Configuration loader for bot descriptions

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#botsObject (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