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
#authorize ⇒ Object
610 611 612 |
# File 'lib/ayadn/app.rb', line 610 def Authorize.new. end |
#auto ⇒ Object
532 533 534 |
# File 'lib/ayadn/app.rb', line 532 def auto Action.new.auto() end |
#block(*username) ⇒ Object
419 420 421 |
# File 'lib/ayadn/app.rb', line 419 def block(*username) Action.new.block(username) end |
#blocked ⇒ Object
249 250 251 |
# File 'lib/ayadn/app.rb', line 249 def blocked Action.new.blocked() end |
#channels ⇒ Object
432 433 434 |
# File 'lib/ayadn/app.rb', line 432 def channels Action.new.channels() end |
#checkins ⇒ Object
41 42 43 |
# File 'lib/ayadn/app.rb', line 41 def checkins Action.new.checkins() end |
#conversations ⇒ Object
97 98 99 |
# File 'lib/ayadn/app.rb', line 97 def conversations Action.new.conversations() end |
#convo(post_id) ⇒ Object
183 184 185 |
# File 'lib/ayadn/app.rb', line 183 def convo(post_id) Action.new.convo(post_id, ) end |
#delete(*post_id) ⇒ Object
338 339 340 |
# File 'lib/ayadn/app.rb', line 338 def delete(*post_id) Action.new.delete(post_id, ) end |
#delete_m(*args) ⇒ Object
345 346 347 |
# File 'lib/ayadn/app.rb', line 345 def delete_m(*args) Action.new.delete_m(args) end |
#download(file_id) ⇒ Object
552 553 554 555 |
# File 'lib/ayadn/app.rb', line 552 def download(file_id) ayadn = Action.new ayadn.download(file_id) end |
#files ⇒ Object
330 331 332 |
# File 'lib/ayadn/app.rb', line 330 def files Action.new.files() end |
#follow(*username) ⇒ Object
405 406 407 |
# File 'lib/ayadn/app.rb', line 405 def follow(*username) Action.new.follow(username) end |
#followers(*username) ⇒ Object
217 218 219 |
# File 'lib/ayadn/app.rb', line 217 def followers(*username) Action.new.followers(username, ) end |
#followings(*username) ⇒ Object
201 202 203 |
# File 'lib/ayadn/app.rb', line 201 def followings(*username) Action.new.followings(username, ) end |
#global ⇒ Object
55 56 57 |
# File 'lib/ayadn/app.rb', line 55 def global Action.new.global() end |
#hashtag(hashtag) ⇒ Object
260 261 262 |
# File 'lib/ayadn/app.rb', line 260 def hashtag(hashtag) Action.new.hashtag(hashtag, ) end |
#interactions ⇒ Object
132 133 134 |
# File 'lib/ayadn/app.rb', line 132 def interactions Action.new.interactions() end |
#mentions(*username) ⇒ Object
110 111 112 |
# File 'lib/ayadn/app.rb', line 110 def mentions(*username) Action.new.mentions(username, ) end |
#messages(channel_id) ⇒ Object
445 446 447 |
# File 'lib/ayadn/app.rb', line 445 def (channel_id) Action.new.(channel_id, ) end |
#messages_unread ⇒ Object
454 455 456 |
# File 'lib/ayadn/app.rb', line 454 def Action.new.() end |
#migrate ⇒ Object
645 646 647 648 |
# File 'lib/ayadn/app.rb', line 645 def migrate mig = Migration.new mig.all end |
#movie(*title) ⇒ Object
583 584 585 |
# File 'lib/ayadn/app.rb', line 583 def movie(*title) Action.new.nowwatching(title, ) end |
#mute(*username) ⇒ Object
412 413 414 |
# File 'lib/ayadn/app.rb', line 412 def mute(*username) Action.new.mute(username) end |
#muted ⇒ Object
233 234 235 |
# File 'lib/ayadn/app.rb', line 233 def muted Action.new.muted() end |
#nowplaying ⇒ Object
572 573 574 |
# File 'lib/ayadn/app.rb', line 572 def Action.new.() end |
#photos ⇒ Object
83 84 85 |
# File 'lib/ayadn/app.rb', line 83 def photos Action.new.photos() end |
#pin(post_id, *tags) ⇒ Object
461 462 463 |
# File 'lib/ayadn/app.rb', line 461 def pin(post_id, *) Action.new.pin(post_id, , ) end |
#pm(*username) ⇒ Object
498 499 500 |
# File 'lib/ayadn/app.rb', line 498 def pm(*username) Action.new.pmess(username, ) end |
#post(*args) ⇒ Object
473 474 475 |
# File 'lib/ayadn/app.rb', line 473 def post(*args) Action.new.post(args, ) end |
#postinfo(post_id) ⇒ Object
320 321 322 |
# File 'lib/ayadn/app.rb', line 320 def postinfo(post_id) Action.new.postinfo(post_id, ) end |
#random ⇒ Object
602 603 604 |
# File 'lib/ayadn/app.rb', line 602 def random Action.new.random_posts() end |
#reply(id) ⇒ Object
525 526 527 528 |
# File 'lib/ayadn/app.rb', line 525 def reply(id) ayadn = Action.new ayadn.reply(id, ) end |
#repost(*post_id) ⇒ Object
398 399 400 |
# File 'lib/ayadn/app.rb', line 398 def repost(*post_id) Action.new.repost(post_id, ) end |
#search(*words) ⇒ Object
277 278 279 |
# File 'lib/ayadn/app.rb', line 277 def search(*words) Action.new.search(words.join(","), ) end |
#send_to_channel(channel_id) ⇒ Object
511 512 513 |
# File 'lib/ayadn/app.rb', line 511 def send_to_channel(channel_id) Action.new.send_to_channel(channel_id, ) end |
#settings ⇒ Object
286 287 288 |
# File 'lib/ayadn/app.rb', line 286 def settings Action.new.view_settings() end |
#star(*post_id) ⇒ Object
390 391 392 |
# File 'lib/ayadn/app.rb', line 390 def star(*post_id) Action.new.star(post_id, ) end |
#switch(*username) ⇒ Object
628 629 630 631 632 633 634 |
# File 'lib/ayadn/app.rb', line 628 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.
16 |
# File 'lib/ayadn/app.rb', line 16 desc "timeline", "Show your App.net timeline, aka the Unified Stream (-tl)" |
#trending ⇒ Object
69 70 71 |
# File 'lib/ayadn/app.rb', line 69 def trending Action.new.trending() end |
#tvshow(*title) ⇒ Object
593 594 595 |
# File 'lib/ayadn/app.rb', line 593 def tvshow(*title) Action.new.tvshow(title, ) end |
#unauthorize(*user) ⇒ Object
619 620 621 |
# File 'lib/ayadn/app.rb', line 619 def (*user) Authorize.new.(user, ) end |
#unblock(*username) ⇒ Object
366 367 368 |
# File 'lib/ayadn/app.rb', line 366 def unblock(*username) Action.new.unblock(username) end |
#unfollow(*username) ⇒ Object
352 353 354 |
# File 'lib/ayadn/app.rb', line 352 def unfollow(*username) Action.new.unfollow(username) end |
#unmute(*username) ⇒ Object
359 360 361 |
# File 'lib/ayadn/app.rb', line 359 def unmute(*username) Action.new.unmute(username) end |
#unrepost(*post_id) ⇒ Object
374 375 376 |
# File 'lib/ayadn/app.rb', line 374 def unrepost(*post_id) Action.new.unrepost(post_id, ) end |
#unstar(*post_id) ⇒ Object
382 383 384 |
# File 'lib/ayadn/app.rb', line 382 def unstar(*post_id) Action.new.unstar(post_id, ) end |
#userinfo(*username) ⇒ Object
295 296 297 |
# File 'lib/ayadn/app.rb', line 295 def userinfo(*username) Action.new.userinfo(username, ) end |
#userposts(*username) ⇒ Object
123 124 125 |
# File 'lib/ayadn/app.rb', line 123 def userposts(*username) Action.new.posts(username, ) end |
#userupdate ⇒ Object
310 311 312 |
# File 'lib/ayadn/app.rb', line 310 def userupdate Action.new.userupdate() end |
#version ⇒ Object
638 639 640 |
# File 'lib/ayadn/app.rb', line 638 def version Action.new.version end |
#whatstarred(*username) ⇒ Object
146 147 148 |
# File 'lib/ayadn/app.rb', line 146 def whatstarred(*username) Action.new.whatstarred(username, ) end |
#whoreposted(post_id) ⇒ Object
158 159 160 |
# File 'lib/ayadn/app.rb', line 158 def whoreposted(post_id) Action.new.whoreposted(post_id, ) end |
#whostarred(post_id) ⇒ Object
170 171 172 |
# File 'lib/ayadn/app.rb', line 170 def whostarred(post_id) Action.new.whostarred(post_id, ) end |
#write ⇒ Object
486 487 488 |
# File 'lib/ayadn/app.rb', line 486 def write Action.new.write() end |