Class: Ayadn::SetCounts
- Inherits:
-
Object
- Object
- Ayadn::SetCounts
- Defined in:
- lib/ayadn/set.rb
Instance Method Summary collapse
- #checkins(value) ⇒ Object
- #conversations(value) ⇒ Object
- #convo(value) ⇒ Object
- #default(value) ⇒ Object
- #files(value) ⇒ Object
- #global(value) ⇒ Object
-
#initialize ⇒ SetCounts
constructor
A new instance of SetCounts.
- #log(args) ⇒ Object
- #mentions(value) ⇒ Object
- #messages(value) ⇒ Object
- #photos(value) ⇒ Object
- #posts(value) ⇒ Object
- #save ⇒ Object
- #search(value) ⇒ Object
- #trending(value) ⇒ Object
- #unified(value) ⇒ Object
- #validate(value) ⇒ Object
- #whatstarred(value) ⇒ Object
- #whoreposted(value) ⇒ Object
- #whostarred(value) ⇒ Object
Constructor Details
#initialize ⇒ SetCounts
Returns a new instance of SetCounts.
323 324 325 326 327 328 |
# File 'lib/ayadn/set.rb', line 323 def initialize Settings.load_config Settings.get_token Settings.init_config Logs.create_logger end |
Instance Method Details
#checkins(value) ⇒ Object
349 350 351 |
# File 'lib/ayadn/set.rb', line 349 def checkins(value) Settings.[:counts][:checkins] = value end |
#conversations(value) ⇒ Object
352 353 354 |
# File 'lib/ayadn/set.rb', line 352 def conversations(value) Settings.[:counts][:conversations] = value end |
#convo(value) ⇒ Object
364 365 366 |
# File 'lib/ayadn/set.rb', line 364 def convo(value) Settings.[:counts][:convo] = value end |
#default(value) ⇒ Object
340 341 342 |
# File 'lib/ayadn/set.rb', line 340 def default(value) Settings.[:counts][:default] = value end |
#files(value) ⇒ Object
385 386 387 |
# File 'lib/ayadn/set.rb', line 385 def files(value) Settings.[:counts][:files] = value end |
#global(value) ⇒ Object
346 347 348 |
# File 'lib/ayadn/set.rb', line 346 def global(value) Settings.[:counts][:global] = value end |
#log(args) ⇒ Object
329 330 331 332 333 |
# File 'lib/ayadn/set.rb', line 329 def log(args) x = "New value for '#{args[0]}' in 'Counts' => #{args[1]}" puts "\n#{x}\n".color(:cyan) Logs.rec.info x end |
#mentions(value) ⇒ Object
361 362 363 |
# File 'lib/ayadn/set.rb', line 361 def mentions(value) Settings.[:counts][:mentions] = value end |
#messages(value) ⇒ Object
370 371 372 |
# File 'lib/ayadn/set.rb', line 370 def (value) Settings.[:counts][:messages] = value end |
#photos(value) ⇒ Object
355 356 357 |
# File 'lib/ayadn/set.rb', line 355 def photos(value) Settings.[:counts][:photos] = value end |
#posts(value) ⇒ Object
367 368 369 |
# File 'lib/ayadn/set.rb', line 367 def posts(value) Settings.[:counts][:posts] = value end |
#save ⇒ Object
334 335 336 |
# File 'lib/ayadn/set.rb', line 334 def save Settings.save_config end |
#search(value) ⇒ Object
373 374 375 |
# File 'lib/ayadn/set.rb', line 373 def search(value) Settings.[:counts][:search] = value end |
#trending(value) ⇒ Object
358 359 360 |
# File 'lib/ayadn/set.rb', line 358 def trending(value) Settings.[:counts][:trending] = value end |
#unified(value) ⇒ Object
343 344 345 |
# File 'lib/ayadn/set.rb', line 343 def unified(value) Settings.[:counts][:unified] = value end |
#validate(value) ⇒ Object
337 338 339 |
# File 'lib/ayadn/set.rb', line 337 def validate(value) Validators.index_range(1, 200, value) end |
#whatstarred(value) ⇒ Object
382 383 384 |
# File 'lib/ayadn/set.rb', line 382 def whatstarred(value) Settings.[:counts][:whatstarred] = value end |
#whoreposted(value) ⇒ Object
376 377 378 |
# File 'lib/ayadn/set.rb', line 376 def whoreposted(value) Settings.[:counts][:whoreposted] = value end |
#whostarred(value) ⇒ Object
379 380 381 |
# File 'lib/ayadn/set.rb', line 379 def whostarred(value) Settings.[:counts][:whostarred] = value end |