Class: Ayadn::SetColor

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

Instance Method Summary collapse

Constructor Details

#initializeSetColor

Returns a new instance of SetColor.



377
378
379
380
381
382
# File 'lib/ayadn/set.rb', line 377

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

Instance Method Details

#client(color) ⇒ Object



446
447
448
# File 'lib/ayadn/set.rb', line 446

def client color
  source color
end

#date(color) ⇒ Object



414
415
416
# File 'lib/ayadn/set.rb', line 414

def date(color)
  Settings.options[:colors][:date] = color.to_sym
end

#debug(color) ⇒ Object



458
459
460
# File 'lib/ayadn/set.rb', line 458

def debug(color)
  Settings.options[:colors][:debug] = color.to_sym
end

#dots(color) ⇒ Object



422
423
424
# File 'lib/ayadn/set.rb', line 422

def dots(color)
  Settings.options[:colors][:dots] = color.to_sym
end

#hashtag(color) ⇒ Object



430
431
432
# File 'lib/ayadn/set.rb', line 430

def hashtag color
  hashtags color
end

#hashtags(color) ⇒ Object



426
427
428
# File 'lib/ayadn/set.rb', line 426

def hashtags(color)
  Settings.options[:colors][:hashtags] = color.to_sym
end

#id(color) ⇒ Object



398
399
400
# File 'lib/ayadn/set.rb', line 398

def id(color)
  Settings.options[:colors][:id] = color.to_sym
end

#index(color) ⇒ Object



402
403
404
# File 'lib/ayadn/set.rb', line 402

def index(color)
  Settings.options[:colors][:index] = color.to_sym
end


418
419
420
# File 'lib/ayadn/set.rb', line 418

def link(color)
  Settings.options[:colors][:link] = color.to_sym
end

#log(args) ⇒ Object



388
389
390
391
392
# File 'lib/ayadn/set.rb', line 388

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

#mention(color) ⇒ Object



438
439
440
# File 'lib/ayadn/set.rb', line 438

def mention color
  mentions color
end

#mentions(color) ⇒ Object



434
435
436
# File 'lib/ayadn/set.rb', line 434

def mentions(color)
  Settings.options[:colors][:mentions] = color.to_sym
end

#name(color) ⇒ Object



410
411
412
# File 'lib/ayadn/set.rb', line 410

def name(color)
  Settings.options[:colors][:name] = color.to_sym
end

#saveObject



394
395
396
# File 'lib/ayadn/set.rb', line 394

def save
  Settings.save_config
end

#source(color) ⇒ Object



442
443
444
# File 'lib/ayadn/set.rb', line 442

def source(color)
  Settings.options[:colors][:source] = color.to_sym
end

#symbol(color) ⇒ Object



454
455
456
# File 'lib/ayadn/set.rb', line 454

def symbol(color)
  symbols color
end

#symbols(color) ⇒ Object



450
451
452
# File 'lib/ayadn/set.rb', line 450

def symbols(color)
  Settings.options[:colors][:symbols] = color.to_sym
end

#username(color) ⇒ Object



406
407
408
# File 'lib/ayadn/set.rb', line 406

def username(color)
  Settings.options[:colors][:username] = color.to_sym
end

#validate(color) ⇒ Object



384
385
386
# File 'lib/ayadn/set.rb', line 384

def validate(color)
  Validators.color(color)
end