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.



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

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

Instance Method Details

#client(color) ⇒ Object



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

def client color
  source color
end

#date(color) ⇒ Object



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

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

#debug(color) ⇒ Object



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

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

#dots(color) ⇒ Object



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

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

#hashtag(color) ⇒ Object



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

def hashtag color
  hashtags color
end

#hashtags(color) ⇒ Object



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

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

#id(color) ⇒ Object



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

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

#index(color) ⇒ Object



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

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


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

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

#log(args) ⇒ Object



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

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



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

def mention color
  mentions color
end

#mentions(color) ⇒ Object



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

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

#name(color) ⇒ Object



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

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

#nicerank(color) ⇒ Object



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

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

#saveObject



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

def save
  Settings.save_config
end

#source(color) ⇒ Object



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

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

#symbol(color) ⇒ Object



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

def symbol(color)
  symbols color
end

#symbols(color) ⇒ Object



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

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

#username(color) ⇒ Object



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

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

#validate(color) ⇒ Object



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

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