Class: Ayadn::SetTVShow

Inherits:
Object
  • Object
show all
Defined in:
lib/ayadn/set.rb

Instance Method Summary collapse

Constructor Details

#initializeSetTVShow

Returns a new instance of SetTVShow.



198
199
200
201
202
203
# File 'lib/ayadn/set.rb', line 198

def initialize
  Settings.load_config
  Settings.get_token
  Settings.init_config
  Logs.create_logger
end

Instance Method Details

#hashtag(tag) ⇒ Object



212
213
214
# File 'lib/ayadn/set.rb', line 212

def hashtag(tag)
  Settings.options[:tvshow][:hashtag] = tag
end

#log(args) ⇒ Object



204
205
206
207
208
# File 'lib/ayadn/set.rb', line 204

def log(args)
  x = "New value for '#{args[0]}' in 'TV Show' => #{args[1]}"
  puts "\n#{x}\n".color(:cyan)
  Logs.rec.info x
end

#saveObject



209
210
211
# File 'lib/ayadn/set.rb', line 209

def save
  Settings.save_config
end