Class: Ayadn::SetColor
- Inherits:
-
Object
- Object
- Ayadn::SetColor
- Defined in:
- lib/ayadn/set.rb
Instance Method Summary collapse
- #client(color) ⇒ Object
- #date(color) ⇒ Object
- #debug(color) ⇒ Object
- #dots(color) ⇒ Object
- #hashtag(color) ⇒ Object
- #hashtags(color) ⇒ Object
- #id(color) ⇒ Object
- #index(color) ⇒ Object
-
#initialize ⇒ SetColor
constructor
A new instance of SetColor.
- #link(color) ⇒ Object
- #log(args) ⇒ Object
- #mention(color) ⇒ Object
- #mentions(color) ⇒ Object
- #name(color) ⇒ Object
- #save ⇒ Object
- #source(color) ⇒ Object
- #symbol(color) ⇒ Object
- #symbols(color) ⇒ Object
- #username(color) ⇒ Object
- #validate(color) ⇒ Object
Constructor Details
#initialize ⇒ SetColor
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.[:colors][:date] = color.to_sym end |
#debug(color) ⇒ Object
524 525 526 |
# File 'lib/ayadn/set.rb', line 524 def debug(color) Settings.[:colors][:debug] = color.to_sym end |
#dots(color) ⇒ Object
488 489 490 |
# File 'lib/ayadn/set.rb', line 488 def dots(color) Settings.[:colors][:dots] = color.to_sym end |
#hashtag(color) ⇒ Object
496 497 498 |
# File 'lib/ayadn/set.rb', line 496 def hashtag color color end |
#hashtags(color) ⇒ Object
492 493 494 |
# File 'lib/ayadn/set.rb', line 492 def (color) Settings.[:colors][:hashtags] = color.to_sym end |
#id(color) ⇒ Object
464 465 466 |
# File 'lib/ayadn/set.rb', line 464 def id(color) Settings.[:colors][:id] = color.to_sym end |
#index(color) ⇒ Object
468 469 470 |
# File 'lib/ayadn/set.rb', line 468 def index(color) Settings.[:colors][:index] = color.to_sym end |
#link(color) ⇒ Object
484 485 486 |
# File 'lib/ayadn/set.rb', line 484 def link(color) Settings.[: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.[:colors][:mentions] = color.to_sym end |
#name(color) ⇒ Object
476 477 478 |
# File 'lib/ayadn/set.rb', line 476 def name(color) Settings.[:colors][:name] = color.to_sym end |
#save ⇒ Object
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.[: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.[:colors][:symbols] = color.to_sym end |
#username(color) ⇒ Object
472 473 474 |
# File 'lib/ayadn/set.rb', line 472 def username(color) Settings.[: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 |