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.



274
275
276
277
278
279
# File 'lib/ayadn/set.rb', line 274

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

Instance Method Details

#checkins(value) ⇒ Object



300
301
302
# File 'lib/ayadn/set.rb', line 300

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

#conversations(value) ⇒ Object



303
304
305
# File 'lib/ayadn/set.rb', line 303

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

#convo(value) ⇒ Object



315
316
317
# File 'lib/ayadn/set.rb', line 315

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

#default(value) ⇒ Object



291
292
293
# File 'lib/ayadn/set.rb', line 291

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

#files(value) ⇒ Object



336
337
338
# File 'lib/ayadn/set.rb', line 336

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

#global(value) ⇒ Object



297
298
299
# File 'lib/ayadn/set.rb', line 297

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

#log(args) ⇒ Object



280
281
282
283
284
# File 'lib/ayadn/set.rb', line 280

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



312
313
314
# File 'lib/ayadn/set.rb', line 312

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

#messages(value) ⇒ Object



321
322
323
# File 'lib/ayadn/set.rb', line 321

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

#photos(value) ⇒ Object



306
307
308
# File 'lib/ayadn/set.rb', line 306

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

#posts(value) ⇒ Object



318
319
320
# File 'lib/ayadn/set.rb', line 318

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

#saveObject



285
286
287
# File 'lib/ayadn/set.rb', line 285

def save
  Settings.save_config
end

#search(value) ⇒ Object



324
325
326
# File 'lib/ayadn/set.rb', line 324

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


309
310
311
# File 'lib/ayadn/set.rb', line 309

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

#unified(value) ⇒ Object



294
295
296
# File 'lib/ayadn/set.rb', line 294

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

#validate(value) ⇒ Object



288
289
290
# File 'lib/ayadn/set.rb', line 288

def validate(value)
  Validators.index_range(1, 200, value)
end

#whatstarred(value) ⇒ Object



333
334
335
# File 'lib/ayadn/set.rb', line 333

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

#whoreposted(value) ⇒ Object



327
328
329
# File 'lib/ayadn/set.rb', line 327

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

#whostarred(value) ⇒ Object



330
331
332
# File 'lib/ayadn/set.rb', line 330

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