Class: Ayadn::SetTimeline

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

Instance Method Summary collapse

Constructor Details

#initializeSetTimeline

Returns a new instance of SetTimeline.



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

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

Instance Method Details

#annotations(value) ⇒ Object



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

def annotations(value)
  #Settings.options[:timeline][:annotations] = value
  abort(Status.not_mutable)
end

#deleted(value) ⇒ Object



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

def deleted(value)
  #Settings.options[:timeline][:deleted] = value
  abort(Status.not_mutable)
end

#directed(value) ⇒ Object



408
409
410
# File 'lib/ayadn/set.rb', line 408

def directed(value)
  Settings.options[:timeline][:directed] = value
end

#html(value) ⇒ Object



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

def html(value)
  Settings.options[:timeline][:html] = value
end

#log(args) ⇒ Object



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

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

#saveObject



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

def save
  Settings.save_config
end

#show_date(value) ⇒ Object



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

def show_date(value)
  Settings.options[:timeline][:show_date] = value
end

#show_debug(value) ⇒ Object



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

def show_debug value
  Settings.options[:timeline][:show_debug] = value
end

#show_real_name(value) ⇒ Object



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

def show_real_name(value)
  Settings.options[:timeline][:show_real_name] = value
end

#show_source(value) ⇒ Object



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

def show_source(value)
  Settings.options[:timeline][:show_source] = value
end

#show_spinner(value) ⇒ Object



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

def show_spinner value
  Settings.options[:timeline][:show_spinner] = value
end

#show_symbols(value) ⇒ Object



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

def show_symbols(value)
  Settings.options[:timeline][:show_symbols] = value
end

#validate(value) ⇒ Object



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

def validate(value)
  Validators.boolean(value)
end