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.
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.[:counts][:checkins] = value end |
#conversations(value) ⇒ Object
303 304 305 |
# File 'lib/ayadn/set.rb', line 303 def conversations(value) Settings.[:counts][:conversations] = value end |
#convo(value) ⇒ Object
315 316 317 |
# File 'lib/ayadn/set.rb', line 315 def convo(value) Settings.[:counts][:convo] = value end |
#default(value) ⇒ Object
291 292 293 |
# File 'lib/ayadn/set.rb', line 291 def default(value) Settings.[:counts][:default] = value end |
#files(value) ⇒ Object
336 337 338 |
# File 'lib/ayadn/set.rb', line 336 def files(value) Settings.[:counts][:files] = value end |
#global(value) ⇒ Object
297 298 299 |
# File 'lib/ayadn/set.rb', line 297 def global(value) Settings.[: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.[:counts][:mentions] = value end |
#messages(value) ⇒ Object
321 322 323 |
# File 'lib/ayadn/set.rb', line 321 def (value) Settings.[:counts][:messages] = value end |
#photos(value) ⇒ Object
306 307 308 |
# File 'lib/ayadn/set.rb', line 306 def photos(value) Settings.[:counts][:photos] = value end |
#posts(value) ⇒ Object
318 319 320 |
# File 'lib/ayadn/set.rb', line 318 def posts(value) Settings.[:counts][:posts] = value end |
#save ⇒ Object
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.[:counts][:search] = value end |
#trending(value) ⇒ Object
309 310 311 |
# File 'lib/ayadn/set.rb', line 309 def trending(value) Settings.[:counts][:trending] = value end |
#unified(value) ⇒ Object
294 295 296 |
# File 'lib/ayadn/set.rb', line 294 def unified(value) Settings.[: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.[:counts][:whatstarred] = value end |
#whoreposted(value) ⇒ Object
327 328 329 |
# File 'lib/ayadn/set.rb', line 327 def whoreposted(value) Settings.[:counts][:whoreposted] = value end |
#whostarred(value) ⇒ Object
330 331 332 |
# File 'lib/ayadn/set.rb', line 330 def whostarred(value) Settings.[:counts][:whostarred] = value end |