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.



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

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

Instance Method Details

#client(color) ⇒ Object



512
513
514
# File 'lib/ayadn/set.rb', line 512

def client color
  source color
end

#date(color) ⇒ Object



480
481
482
# File 'lib/ayadn/set.rb', line 480

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

#debug(color) ⇒ Object



524
525
526
# File 'lib/ayadn/set.rb', line 524

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

#dots(color) ⇒ Object



488
489
490
# File 'lib/ayadn/set.rb', line 488

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

#hashtag(color) ⇒ Object



496
497
498
# File 'lib/ayadn/set.rb', line 496

def hashtag color
  hashtags color
end

#hashtags(color) ⇒ Object



492
493
494
# File 'lib/ayadn/set.rb', line 492

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

#id(color) ⇒ Object



464
465
466
# File 'lib/ayadn/set.rb', line 464

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

#index(color) ⇒ Object



468
469
470
# File 'lib/ayadn/set.rb', line 468

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


484
485
486
# File 'lib/ayadn/set.rb', line 484

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

#log(args) ⇒ Object



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

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



504
505
506
# File 'lib/ayadn/set.rb', line 504

def mention color
  mentions color
end

#mentions(color) ⇒ Object



500
501
502
# File 'lib/ayadn/set.rb', line 500

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

#name(color) ⇒ Object



476
477
478
# File 'lib/ayadn/set.rb', line 476

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

#saveObject



460
461
462
# File 'lib/ayadn/set.rb', line 460

def save
  Settings.save_config
end

#source(color) ⇒ Object



508
509
510
# File 'lib/ayadn/set.rb', line 508

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

#symbol(color) ⇒ Object



520
521
522
# File 'lib/ayadn/set.rb', line 520

def symbol(color)
  symbols color
end

#symbols(color) ⇒ Object



516
517
518
# File 'lib/ayadn/set.rb', line 516

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

#username(color) ⇒ Object



472
473
474
# File 'lib/ayadn/set.rb', line 472

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

#validate(color) ⇒ Object



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

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