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.
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.[:counts][:checkins] = value end |
#conversations(value) ⇒ Object
286 287 288 |
# File 'lib/ayadn/set.rb', line 286 def conversations(value) Settings.[:counts][:conversations] = value end |
#convo(value) ⇒ Object
298 299 300 |
# File 'lib/ayadn/set.rb', line 298 def convo(value) Settings.[:counts][:convo] = value end |
#default(value) ⇒ Object
274 275 276 |
# File 'lib/ayadn/set.rb', line 274 def default(value) Settings.[:counts][:default] = value end |
#files(value) ⇒ Object
319 320 321 |
# File 'lib/ayadn/set.rb', line 319 def files(value) Settings.[:counts][:files] = value end |
#global(value) ⇒ Object
280 281 282 |
# File 'lib/ayadn/set.rb', line 280 def global(value) Settings.[: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.[:counts][:mentions] = value end |
#messages(value) ⇒ Object
304 305 306 |
# File 'lib/ayadn/set.rb', line 304 def (value) Settings.[:counts][:messages] = value end |
#photos(value) ⇒ Object
289 290 291 |
# File 'lib/ayadn/set.rb', line 289 def photos(value) Settings.[:counts][:photos] = value end |
#posts(value) ⇒ Object
301 302 303 |
# File 'lib/ayadn/set.rb', line 301 def posts(value) Settings.[:counts][:posts] = value end |
#save ⇒ Object
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.[:counts][:search] = value end |
#trending(value) ⇒ Object
292 293 294 |
# File 'lib/ayadn/set.rb', line 292 def trending(value) Settings.[:counts][:trending] = value end |
#unified(value) ⇒ Object
277 278 279 |
# File 'lib/ayadn/set.rb', line 277 def unified(value) Settings.[: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.[:counts][:whatstarred] = value end |
#whoreposted(value) ⇒ Object
310 311 312 |
# File 'lib/ayadn/set.rb', line 310 def whoreposted(value) Settings.[:counts][:whoreposted] = value end |
#whostarred(value) ⇒ Object
313 314 315 |
# File 'lib/ayadn/set.rb', line 313 def whostarred(value) Settings.[:counts][:whostarred] = value end |