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.



244
245
246
247
248
249
# File 'lib/ayadn/set.rb', line 244

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

Instance Method Details

#hashtag(tag) ⇒ Object



258
259
260
# File 'lib/ayadn/set.rb', line 258

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

#log(args) ⇒ Object



250
251
252
253
254
# File 'lib/ayadn/set.rb', line 250

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



255
256
257
# File 'lib/ayadn/set.rb', line 255

def save
  Settings.save_config
end