Class: TweetomatorConfig

Inherits:
Object
  • Object
show all
Includes:
Validatable
Defined in:
lib/config/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Validatable

#valid?

Constructor Details

#initialize(twitter_config, flickr_config, topics, blacklist, stop_words, delay_in_seconds, composer_type, input_text_file) ⇒ TweetomatorConfig

Returns a new instance of TweetomatorConfig.



42
43
44
45
46
47
48
49
50
51
# File 'lib/config/config.rb', line 42

def initialize(twitter_config, flickr_config, topics, blacklist, stop_words, delay_in_seconds, composer_type, input_text_file)
  @twitter_config = twitter_config
  @flickr_config = flickr_config
  @topics = topics
  @blacklist = blacklist
  @stop_words = stop_words
  @delay_in_seconds = delay_in_seconds
  @composer_type = composer_type
  @input_text_file = input_text_file
end

Instance Attribute Details

#blacklistObject (readonly)

Returns the value of attribute blacklist.



40
41
42
# File 'lib/config/config.rb', line 40

def blacklist
  @blacklist
end

#composer_typeObject (readonly)

Returns the value of attribute composer_type.



40
41
42
# File 'lib/config/config.rb', line 40

def composer_type
  @composer_type
end

#delay_in_secondsObject (readonly)

Returns the value of attribute delay_in_seconds.



40
41
42
# File 'lib/config/config.rb', line 40

def delay_in_seconds
  @delay_in_seconds
end

#flickr_configObject (readonly)

Returns the value of attribute flickr_config.



40
41
42
# File 'lib/config/config.rb', line 40

def flickr_config
  @flickr_config
end

#input_text_fileObject (readonly)

Returns the value of attribute input_text_file.



40
41
42
# File 'lib/config/config.rb', line 40

def input_text_file
  @input_text_file
end

#stop_wordsObject (readonly)

Returns the value of attribute stop_words.



40
41
42
# File 'lib/config/config.rb', line 40

def stop_words
  @stop_words
end

#topicsObject (readonly)

Returns the value of attribute topics.



40
41
42
# File 'lib/config/config.rb', line 40

def topics
  @topics
end

#twitter_configObject (readonly)

Returns the value of attribute twitter_config.



40
41
42
# File 'lib/config/config.rb', line 40

def twitter_config
  @twitter_config
end