Class: Ayadn::App
- Inherits:
-
Thor
- Object
- Thor
- Ayadn::App
- Defined in:
- lib/ayadn/app.rb
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
- #messages(channel_id) ⇒ Object
- #messages_unread ⇒ Object
- #migrate ⇒ Object
- #movie(*title) ⇒ 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
These methods are intended to be called from the CLI.
- #trending ⇒ Object
- #tvshow(*title) ⇒ 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
- #whostarred(post_id) ⇒ Object
- #write ⇒ Object
Instance Method Details
#block(*username) ⇒ Object
398 399 400 |
# File 'lib/ayadn/app.rb', line 398 def block(*username) Action.new.block(username) end |
#blocked ⇒ Object
228 229 230 |
# File 'lib/ayadn/app.rb', line 228 def blocked Action.new.blocked() end |
#channels ⇒ Object
411 412 413 |
# File 'lib/ayadn/app.rb', line 411 def channels Action.new.channels() end |
#checkins ⇒ Object
36 37 38 |
# File 'lib/ayadn/app.rb', line 36 def checkins Action.new.checkins() end |
#conversations ⇒ Object
92 93 94 |
# File 'lib/ayadn/app.rb', line 92 def conversations Action.new.conversations() end |
#convo(post_id) ⇒ Object
172 173 174 |
# File 'lib/ayadn/app.rb', line 172 def convo(post_id) Action.new.convo(post_id, ) end |
#delete(*post_id) ⇒ Object
317 318 319 |
# File 'lib/ayadn/app.rb', line 317 def delete(*post_id) Action.new.delete(post_id, ) end |
#delete_m(*args) ⇒ Object
324 325 326 |
# File 'lib/ayadn/app.rb', line 324 def delete_m(*args) Action.new.delete_m(args) end |
#download(file_id) ⇒ Object
531 532 533 534 |
# File 'lib/ayadn/app.rb', line 531 def download(file_id) ayadn = Action.new ayadn.download(file_id) end |
#follow(*username) ⇒ Object
384 385 386 |
# File 'lib/ayadn/app.rb', line 384 def follow(*username) Action.new.follow(username) end |
#followers(*username) ⇒ Object
200 201 202 |
# File 'lib/ayadn/app.rb', line 200 def followers(*username) Action.new.followers(username, ) end |
#followings(*username) ⇒ Object
186 187 188 |
# File 'lib/ayadn/app.rb', line 186 def followings(*username) Action.new.followings(username, ) end |
#hashtag(hashtag) ⇒ Object
239 240 241 |
# File 'lib/ayadn/app.rb', line 239 def hashtag(hashtag) Action.new.hashtag(hashtag, ) end |
#interactions ⇒ Object
127 128 129 |
# File 'lib/ayadn/app.rb', line 127 def interactions Action.new.interactions() end |
#mentions(*username) ⇒ Object
105 106 107 |
# File 'lib/ayadn/app.rb', line 105 def mentions(*username) Action.new.mentions(username, ) end |
#messages(channel_id) ⇒ Object
424 425 426 |
# File 'lib/ayadn/app.rb', line 424 def (channel_id) Action.new.(channel_id, ) end |
#migrate ⇒ Object
623 624 625 626 |
# File 'lib/ayadn/app.rb', line 623 def migrate mig = Migration.new mig.all end |
#movie(*title) ⇒ Object
561 562 563 |
# File 'lib/ayadn/app.rb', line 561 def movie(*title) Action.new.nowwatching(title, ) end |
#mute(*username) ⇒ Object
391 392 393 |
# File 'lib/ayadn/app.rb', line 391 def mute(*username) Action.new.mute(username) end |
#pin(post_id, *tags) ⇒ Object
440 441 442 |
# File 'lib/ayadn/app.rb', line 440 def pin(post_id, *) Action.new.pin(post_id, , ) end |
#pm(*username) ⇒ Object
477 478 479 |
# File 'lib/ayadn/app.rb', line 477 def pm(*username) Action.new.pmess(username, ) end |
#post(*args) ⇒ Object
452 453 454 |
# File 'lib/ayadn/app.rb', line 452 def post(*args) Action.new.post(args, ) end |
#postinfo(post_id) ⇒ Object
299 300 301 |
# File 'lib/ayadn/app.rb', line 299 def postinfo(post_id) Action.new.postinfo(post_id, ) end |
#random ⇒ Object
580 581 582 |
# File 'lib/ayadn/app.rb', line 580 def random Action.new.random_posts() end |
#reply(id) ⇒ Object
504 505 506 507 |
# File 'lib/ayadn/app.rb', line 504 def reply(id) ayadn = Action.new ayadn.reply(id, ) end |
#repost(*post_id) ⇒ Object
377 378 379 |
# File 'lib/ayadn/app.rb', line 377 def repost(*post_id) Action.new.repost(post_id, ) end |
#search(*words) ⇒ Object
256 257 258 |
# File 'lib/ayadn/app.rb', line 256 def search(*words) Action.new.search(words.join(","), ) end |
#send_to_channel(channel_id) ⇒ Object
490 491 492 |
# File 'lib/ayadn/app.rb', line 490 def send_to_channel(channel_id) Action.new.send_to_channel(channel_id, ) end |
#settings ⇒ Object
265 266 267 |
# File 'lib/ayadn/app.rb', line 265 def settings Action.new.view_settings() end |
#star(*post_id) ⇒ Object
369 370 371 |
# File 'lib/ayadn/app.rb', line 369 def star(*post_id) Action.new.star(post_id, ) end |
#switch(*username) ⇒ Object
606 607 608 609 610 611 612 |
# File 'lib/ayadn/app.rb', line 606 def switch(*username) unless [:list] Switch.new.switch(username) else Switch.new.list end end |
#timeline ⇒ Object
These methods are intended to be called from the CLI.
11 |
# File 'lib/ayadn/app.rb', line 11 desc "timeline", "Show your App.net timeline, aka the Unified Stream (-tl)" |
#trending ⇒ Object
64 65 66 |
# File 'lib/ayadn/app.rb', line 64 def trending Action.new.trending() end |
#tvshow(*title) ⇒ Object
571 572 573 |
# File 'lib/ayadn/app.rb', line 571 def tvshow(*title) Action.new.tvshow(title, ) end |
#unauthorize(*user) ⇒ Object
597 598 599 |
# File 'lib/ayadn/app.rb', line 597 def (*user) Authorize.new.(user, ) end |
#unblock(*username) ⇒ Object
345 346 347 |
# File 'lib/ayadn/app.rb', line 345 def unblock(*username) Action.new.unblock(username) end |
#unfollow(*username) ⇒ Object
331 332 333 |
# File 'lib/ayadn/app.rb', line 331 def unfollow(*username) Action.new.unfollow(username) end |
#unmute(*username) ⇒ Object
338 339 340 |
# File 'lib/ayadn/app.rb', line 338 def unmute(*username) Action.new.unmute(username) end |
#unrepost(*post_id) ⇒ Object
353 354 355 |
# File 'lib/ayadn/app.rb', line 353 def unrepost(*post_id) Action.new.unrepost(post_id, ) end |
#unstar(*post_id) ⇒ Object
361 362 363 |
# File 'lib/ayadn/app.rb', line 361 def unstar(*post_id) Action.new.unstar(post_id, ) end |
#userinfo(*username) ⇒ Object
274 275 276 |
# File 'lib/ayadn/app.rb', line 274 def userinfo(*username) Action.new.userinfo(username, ) end |
#userposts(*username) ⇒ Object
118 119 120 |
# File 'lib/ayadn/app.rb', line 118 def userposts(*username) Action.new.posts(username, ) end |
#userupdate ⇒ Object
289 290 291 |
# File 'lib/ayadn/app.rb', line 289 def userupdate Action.new.userupdate() end |
#version ⇒ Object
616 617 618 |
# File 'lib/ayadn/app.rb', line 616 def version Action.new.version end |
#whatstarred(*username) ⇒ Object
139 140 141 |
# File 'lib/ayadn/app.rb', line 139 def whatstarred(*username) Action.new.whatstarred(username, ) end |
#whoreposted(post_id) ⇒ Object
149 150 151 |
# File 'lib/ayadn/app.rb', line 149 def whoreposted(post_id) Action.new.whoreposted(post_id, ) end |
#whostarred(post_id) ⇒ Object
159 160 161 |
# File 'lib/ayadn/app.rb', line 159 def whostarred(post_id) Action.new.whostarred(post_id, ) end |