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
- #nicerank(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.
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.[:colors][:date] = color.to_sym end |
#debug(color) ⇒ Object
491 492 493 |
# File 'lib/ayadn/set.rb', line 491 def debug(color) Settings.[:colors][:debug] = color.to_sym end |
#dots(color) ⇒ Object
455 456 457 |
# File 'lib/ayadn/set.rb', line 455 def dots(color) Settings.[:colors][:dots] = color.to_sym end |
#hashtag(color) ⇒ Object
463 464 465 |
# File 'lib/ayadn/set.rb', line 463 def hashtag color color end |
#hashtags(color) ⇒ Object
459 460 461 |
# File 'lib/ayadn/set.rb', line 459 def (color) Settings.[:colors][:hashtags] = color.to_sym end |
#id(color) ⇒ Object
431 432 433 |
# File 'lib/ayadn/set.rb', line 431 def id(color) Settings.[:colors][:id] = color.to_sym end |
#index(color) ⇒ Object
435 436 437 |
# File 'lib/ayadn/set.rb', line 435 def index(color) Settings.[:colors][:index] = color.to_sym end |
#link(color) ⇒ Object
451 452 453 |
# File 'lib/ayadn/set.rb', line 451 def link(color) Settings.[: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.[:colors][:mentions] = color.to_sym end |
#name(color) ⇒ Object
443 444 445 |
# File 'lib/ayadn/set.rb', line 443 def name(color) Settings.[:colors][:name] = color.to_sym end |
#nicerank(color) ⇒ Object
495 496 497 |
# File 'lib/ayadn/set.rb', line 495 def nicerank(color) Settings.[:colors][:nicerank] = color.to_sym end |
#save ⇒ Object
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.[: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.[:colors][:symbols] = color.to_sym end |
#username(color) ⇒ Object
439 440 441 |
# File 'lib/ayadn/set.rb', line 439 def username(color) Settings.[: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 |