Class: Ayadn::SetCounts

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

Instance Method Summary collapse

Constructor Details

#initializeSetCounts

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.options[:counts][:checkins] = value
end

#conversations(value) ⇒ Object



352
353
354
# File 'lib/ayadn/set.rb', line 352

def conversations(value)
  Settings.options[:counts][:conversations] = value
end

#convo(value) ⇒ Object



364
365
366
# File 'lib/ayadn/set.rb', line 364

def convo(value)
  Settings.options[:counts][:convo] = value
end

#default(value) ⇒ Object



340
341
342
# File 'lib/ayadn/set.rb', line 340

def default(value)
  Settings.options[:counts][:default] = value
end

#files(value) ⇒ Object



385
386
387
# File 'lib/ayadn/set.rb', line 385

def files(value)
  Settings.options[:counts][:files] = value
end

#global(value) ⇒ Object



346
347
348
# File 'lib/ayadn/set.rb', line 346

def global(value)
  Settings.options[: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.options[:counts][:mentions] = value
end

#messages(value) ⇒ Object



370
371
372
# File 'lib/ayadn/set.rb', line 370

def messages(value)
  Settings.options[:counts][:messages] = value
end

#photos(value) ⇒ Object



355
356
357
# File 'lib/ayadn/set.rb', line 355

def photos(value)
  Settings.options[:counts][:photos] = value
end

#posts(value) ⇒ Object



367
368
369
# File 'lib/ayadn/set.rb', line 367

def posts(value)
  Settings.options[:counts][:posts] = value
end

#saveObject



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.options[:counts][:search] = value
end


358
359
360
# File 'lib/ayadn/set.rb', line 358

def trending(value)
  Settings.options[:counts][:trending] = value
end

#unified(value) ⇒ Object



343
344
345
# File 'lib/ayadn/set.rb', line 343

def unified(value)
  Settings.options[: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.options[:counts][:whatstarred] = value
end

#whoreposted(value) ⇒ Object



376
377
378
# File 'lib/ayadn/set.rb', line 376

def whoreposted(value)
  Settings.options[:counts][:whoreposted] = value
end

#whostarred(value) ⇒ Object



379
380
381
# File 'lib/ayadn/set.rb', line 379

def whostarred(value)
  Settings.options[:counts][:whostarred] = value
end