Class: Ayadn::SetTimeline
- Inherits:
-
Object
- Object
- Ayadn::SetTimeline
- Defined in:
- lib/ayadn/set.rb
Instance Method Summary collapse
- #annotations(value) ⇒ Object
- #deleted(value) ⇒ Object
- #directed(value) ⇒ Object
- #html(value) ⇒ Object
-
#initialize ⇒ SetTimeline
constructor
A new instance of SetTimeline.
- #log(args) ⇒ Object
- #save ⇒ Object
- #show_date(value) ⇒ Object
- #show_debug(value) ⇒ Object
- #show_real_name(value) ⇒ Object
- #show_source(value) ⇒ Object
- #show_spinner(value) ⇒ Object
- #show_symbols(value) ⇒ Object
- #validate(value) ⇒ Object
Constructor Details
#initialize ⇒ SetTimeline
Returns a new instance of SetTimeline.
325 326 327 328 329 330 |
# File 'lib/ayadn/set.rb', line 325 def initialize Settings.load_config Settings.get_token Settings.init_config Logs.create_logger end |
Instance Method Details
#annotations(value) ⇒ Object
352 353 354 355 |
# File 'lib/ayadn/set.rb', line 352 def annotations(value) #Settings.options[:timeline][:annotations] = value abort(Status.not_mutable) end |
#deleted(value) ⇒ Object
345 346 347 348 |
# File 'lib/ayadn/set.rb', line 345 def deleted(value) #Settings.options[:timeline][:deleted] = value abort(Status.not_mutable) end |
#directed(value) ⇒ Object
342 343 344 |
# File 'lib/ayadn/set.rb', line 342 def directed(value) Settings.[:timeline][:directed] = value end |
#html(value) ⇒ Object
349 350 351 |
# File 'lib/ayadn/set.rb', line 349 def html(value) Settings.[:timeline][:html] = value end |
#log(args) ⇒ Object
334 335 336 337 338 |
# File 'lib/ayadn/set.rb', line 334 def log(args) x = "New value for '#{args[0]}' in 'Timeline' => #{args[1]}" puts "\n#{x}\n".color(:cyan) Logs.rec.info x end |
#save ⇒ Object
339 340 341 |
# File 'lib/ayadn/set.rb', line 339 def save Settings.save_config end |
#show_date(value) ⇒ Object
365 366 367 |
# File 'lib/ayadn/set.rb', line 365 def show_date(value) Settings.[:timeline][:show_date] = value end |
#show_debug(value) ⇒ Object
371 372 373 |
# File 'lib/ayadn/set.rb', line 371 def show_debug value Settings.[:timeline][:show_debug] = value end |
#show_real_name(value) ⇒ Object
362 363 364 |
# File 'lib/ayadn/set.rb', line 362 def show_real_name(value) Settings.[:timeline][:show_real_name] = value end |
#show_source(value) ⇒ Object
356 357 358 |
# File 'lib/ayadn/set.rb', line 356 def show_source(value) Settings.[:timeline][:show_source] = value end |
#show_spinner(value) ⇒ Object
368 369 370 |
# File 'lib/ayadn/set.rb', line 368 def show_spinner value Settings.[:timeline][:show_spinner] = value end |
#show_symbols(value) ⇒ Object
359 360 361 |
# File 'lib/ayadn/set.rb', line 359 def show_symbols(value) Settings.[:timeline][:show_symbols] = value end |
#validate(value) ⇒ Object
331 332 333 |
# File 'lib/ayadn/set.rb', line 331 def validate(value) Validators.boolean(value) end |