Class: Ayadn::App
Instance Method Summary collapse
- #authorize ⇒ Object
- #auto ⇒ Object
- #block(*username) ⇒ Object
- #blocked ⇒ Object
- #channels ⇒ Object
- #checkins ⇒ Object
- #conversations ⇒ Object
- #convo(post_id) ⇒ Object
- #delete(*post_id) ⇒ Object
- #delete_m(*args) ⇒ Object
- #download(file_id) ⇒ Object
- #files ⇒ Object
- #follow(*username) ⇒ Object
- #followers(*username) ⇒ Object
- #followings(*username) ⇒ Object
- #global ⇒ Object
- #hashtag(hashtag) ⇒ Object
- #interactions ⇒ Object
-
#mentions(*username) ⇒ Object
The method parameter is the CLI argument Here it has a star meaning it will always be an array.
- #messages(channel_id) ⇒ Object
- #messages_unread ⇒ Object
- #mute(*username) ⇒ Object
- #muted ⇒ Object
- #nowplaying ⇒ Object
- #photos ⇒ Object
- #pin(post_id, *tags) ⇒ Object
- #pm(*username) ⇒ Object
- #post(*args) ⇒ Object
- #postinfo(post_id) ⇒ Object
- #random ⇒ Object
- #reply(id) ⇒ Object
- #repost(*post_id) ⇒ Object
- #search(*words) ⇒ Object
- #send_to_channel(channel_id) ⇒ Object
- #settings ⇒ Object
- #star(*post_id) ⇒ Object
- #switch(*username) ⇒ Object
- #timeline ⇒ Object
- #trending ⇒ Object
- #unauthorize(*user) ⇒ Object
- #unblock(*username) ⇒ Object
- #unfollow(*username) ⇒ Object
- #unmute(*username) ⇒ Object
- #unrepost(*post_id) ⇒ Object
- #unstar(*post_id) ⇒ Object
- #userinfo(*username) ⇒ Object
- #userposts(*username) ⇒ Object
- #userupdate ⇒ Object
- #version ⇒ Object
- #whatstarred(*username) ⇒ Object
-
#whoreposted(post_id) ⇒ Object
The argument has no star, it will be a string (by default).
- #whostarred(post_id) ⇒ Object
- #write ⇒ Object
Instance Method Details
#authorize ⇒ Object
605 606 607 608 609 |
# File 'lib/ayadn/app.rb', line 605 def () require_relative("authorize") require_relative("switch") Authorize.new.() end |
#block(*username) ⇒ Object
435 436 437 |
# File 'lib/ayadn/app.rb', line 435 def block(*username) Action.new.block(username) end |
#blocked ⇒ Object
262 263 264 |
# File 'lib/ayadn/app.rb', line 262 def blocked Action.new.blocked() end |
#channels ⇒ Object
448 449 450 |
# File 'lib/ayadn/app.rb', line 448 def channels Action.new.channels() end |
#checkins ⇒ Object
55 56 57 |
# File 'lib/ayadn/app.rb', line 55 def checkins Action.new.checkins() end |
#conversations ⇒ Object
111 112 113 |
# File 'lib/ayadn/app.rb', line 111 def conversations Action.new.conversations() end |
#convo(post_id) ⇒ Object
200 201 202 |
# File 'lib/ayadn/app.rb', line 200 def convo(post_id) Action.new.convo(post_id, ) end |
#delete(*post_id) ⇒ Object
354 355 356 |
# File 'lib/ayadn/app.rb', line 354 def delete(*post_id) Action.new.delete(post_id, ) end |
#delete_m(*args) ⇒ Object
361 362 363 |
# File 'lib/ayadn/app.rb', line 361 def delete_m(*args) Action.new.delete_m(args) end |
#download(file_id) ⇒ Object
565 566 567 568 |
# File 'lib/ayadn/app.rb', line 565 def download(file_id) ayadn = Action.new ayadn.download(file_id) end |
#follow(*username) ⇒ Object
421 422 423 |
# File 'lib/ayadn/app.rb', line 421 def follow(*username) Action.new.follow(username) end |
#followers(*username) ⇒ Object
232 233 234 |
# File 'lib/ayadn/app.rb', line 232 def followers(*username) Action.new.followers(username, ) end |
#followings(*username) ⇒ Object
217 218 219 |
# File 'lib/ayadn/app.rb', line 217 def followings(*username) Action.new.followings(username, ) end |
#hashtag(hashtag) ⇒ Object
273 274 275 276 |
# File 'lib/ayadn/app.rb', line 273 def hashtag(hashtag) require_relative("search") Action.new.hashtag(hashtag, ) end |
#interactions ⇒ Object
148 149 150 |
# File 'lib/ayadn/app.rb', line 148 def interactions Action.new.interactions() end |
#mentions(*username) ⇒ Object
The method parameter is the CLI argument Here it has a star meaning it will always be an array
126 127 128 |
# File 'lib/ayadn/app.rb', line 126 def mentions(*username) Action.new.mentions(username, ) end |
#messages(channel_id) ⇒ Object
461 462 463 |
# File 'lib/ayadn/app.rb', line 461 def (channel_id) Action.new.(channel_id, ) end |
#mute(*username) ⇒ Object
428 429 430 |
# File 'lib/ayadn/app.rb', line 428 def mute(*username) Action.new.mute(username) end |
#nowplaying ⇒ Object
585 586 587 588 |
# File 'lib/ayadn/app.rb', line 585 def require_relative("nowplaying") Action.new.() end |
#pin(post_id, *tags) ⇒ Object
477 478 479 480 |
# File 'lib/ayadn/app.rb', line 477 def pin(post_id, *) require_relative("pinboard") Action.new.pin(post_id, , ) end |
#pm(*username) ⇒ Object
512 513 514 |
# File 'lib/ayadn/app.rb', line 512 def pm(*username) Action.new.pmess(username, ) end |
#post(*args) ⇒ Object
489 490 491 |
# File 'lib/ayadn/app.rb', line 489 def post(*args) Action.new.post(args, ) end |
#postinfo(post_id) ⇒ Object
336 337 338 |
# File 'lib/ayadn/app.rb', line 336 def postinfo(post_id) Action.new.postinfo(post_id, ) end |
#random ⇒ Object
595 596 597 |
# File 'lib/ayadn/app.rb', line 595 def random Action.new.random_posts() end |
#reply(id) ⇒ Object
537 538 539 540 |
# File 'lib/ayadn/app.rb', line 537 def reply(id) ayadn = Action.new ayadn.reply(id, ) end |
#repost(*post_id) ⇒ Object
414 415 416 |
# File 'lib/ayadn/app.rb', line 414 def repost(*post_id) Action.new.repost(post_id, ) end |
#search(*words) ⇒ Object
291 292 293 294 |
# File 'lib/ayadn/app.rb', line 291 def search(*words) require_relative("search") Action.new.search(words.join(","), ) end |
#send_to_channel(channel_id) ⇒ Object
524 525 526 |
# File 'lib/ayadn/app.rb', line 524 def send_to_channel(channel_id) Action.new.send_to_channel(channel_id, ) end |
#settings ⇒ Object
301 302 303 |
# File 'lib/ayadn/app.rb', line 301 def settings Action.new.view_settings() end |
#star(*post_id) ⇒ Object
406 407 408 |
# File 'lib/ayadn/app.rb', line 406 def star(*post_id) Action.new.star(post_id, ) end |
#switch(*username) ⇒ Object
627 628 629 630 631 632 633 634 |
# File 'lib/ayadn/app.rb', line 627 def switch(*username) require_relative("switch") unless [:list] Switch.new.switch(username) else Switch.new.list end end |
#timeline ⇒ Object
40 41 42 43 |
# File 'lib/ayadn/app.rb', line 40 def timeline # "options" (the CLI arguments) is a hash automatically generated by Thor Action.new.unified() end |
#trending ⇒ Object
83 84 85 |
# File 'lib/ayadn/app.rb', line 83 def trending Action.new.trending() end |
#unauthorize(*user) ⇒ Object
616 617 618 619 620 |
# File 'lib/ayadn/app.rb', line 616 def (*user) require_relative("authorize") require_relative("switch") Authorize.new.(user, ) end |
#unblock(*username) ⇒ Object
382 383 384 |
# File 'lib/ayadn/app.rb', line 382 def unblock(*username) Action.new.unblock(username) end |
#unfollow(*username) ⇒ Object
368 369 370 |
# File 'lib/ayadn/app.rb', line 368 def unfollow(*username) Action.new.unfollow(username) end |
#unmute(*username) ⇒ Object
375 376 377 |
# File 'lib/ayadn/app.rb', line 375 def unmute(*username) Action.new.unmute(username) end |
#unrepost(*post_id) ⇒ Object
390 391 392 |
# File 'lib/ayadn/app.rb', line 390 def unrepost(*post_id) Action.new.unrepost(post_id, ) end |
#unstar(*post_id) ⇒ Object
398 399 400 |
# File 'lib/ayadn/app.rb', line 398 def unstar(*post_id) Action.new.unstar(post_id, ) end |
#userinfo(*username) ⇒ Object
310 311 312 |
# File 'lib/ayadn/app.rb', line 310 def userinfo(*username) Action.new.userinfo(username, ) end |
#userposts(*username) ⇒ Object
139 140 141 |
# File 'lib/ayadn/app.rb', line 139 def userposts(*username) Action.new.posts(username, ) end |
#userupdate ⇒ Object
325 326 327 328 |
# File 'lib/ayadn/app.rb', line 325 def userupdate require_relative("profile") Action.new.userupdate() end |
#version ⇒ Object
638 639 640 |
# File 'lib/ayadn/app.rb', line 638 def version Status.new.version end |
#whatstarred(*username) ⇒ Object
162 163 164 |
# File 'lib/ayadn/app.rb', line 162 def whatstarred(*username) Action.new.whatstarred(username, ) end |
#whoreposted(post_id) ⇒ Object
The argument has no star, it will be a string (by default)
175 176 177 |
# File 'lib/ayadn/app.rb', line 175 def whoreposted(post_id) Action.new.whoreposted(post_id, ) end |