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.



257
258
259
260
261
262
# File 'lib/ayadn/set.rb', line 257

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

Instance Method Details

#checkins(value) ⇒ Object



283
284
285
# File 'lib/ayadn/set.rb', line 283

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

#conversations(value) ⇒ Object



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

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

#convo(value) ⇒ Object



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

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

#default(value) ⇒ Object



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

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

#files(value) ⇒ Object



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

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

#global(value) ⇒ Object



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

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

#log(args) ⇒ Object



263
264
265
266
267
# File 'lib/ayadn/set.rb', line 263

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



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

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

#messages(value) ⇒ Object



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

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

#photos(value) ⇒ Object



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

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

#posts(value) ⇒ Object



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

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

#saveObject



268
269
270
# File 'lib/ayadn/set.rb', line 268

def save
  Settings.save_config
end

#search(value) ⇒ Object



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

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


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

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

#unified(value) ⇒ Object



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

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

#validate(value) ⇒ Object



271
272
273
# File 'lib/ayadn/set.rb', line 271

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

#whatstarred(value) ⇒ Object



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

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

#whoreposted(value) ⇒ Object



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

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

#whostarred(value) ⇒ Object



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

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