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
- #messages(channel_id) ⇒ Object
- #messages_unread ⇒ 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
615 616 617 618 619 |
# File 'lib/ayadn/app.rb', line 615 def () require_relative("authorize") require_relative("switch") Authorize.new.() end |
#block(*username) ⇒ Object
418 419 420 |
# File 'lib/ayadn/app.rb', line 418 def block(*username) Action.new.block(username) end |
#blocked ⇒ Object
245 246 247 |
# File 'lib/ayadn/app.rb', line 245 def blocked Action.new.blocked() end |
#channels ⇒ Object
431 432 433 |
# File 'lib/ayadn/app.rb', line 431 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
337 338 339 |
# File 'lib/ayadn/app.rb', line 337 def delete(*post_id) Action.new.delete(post_id, ) end |
#delete_m(*args) ⇒ Object
344 345 346 |
# File 'lib/ayadn/app.rb', line 344 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 |
#follow(*username) ⇒ Object
404 405 406 |
# File 'lib/ayadn/app.rb', line 404 def follow(*username) Action.new.follow(username) end |
#followers(*username) ⇒ Object
215 216 217 |
# File 'lib/ayadn/app.rb', line 215 def followers(*username) Action.new.followers(username, ) end |
#followings(*username) ⇒ Object
200 201 202 |
# File 'lib/ayadn/app.rb', line 200 def followings(*username) Action.new.followings(username, ) end |
#hashtag(hashtag) ⇒ Object
256 257 258 259 |
# File 'lib/ayadn/app.rb', line 256 def hashtag(hashtag) require_relative("search") 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
444 445 446 |
# File 'lib/ayadn/app.rb', line 444 def (channel_id) Action.new.(channel_id, ) end |
#movie(*title) ⇒ Object
584 585 586 587 |
# File 'lib/ayadn/app.rb', line 584 def movie(*title) require_relative("nowwatching") Action.new.nowwatching(title, ) end |
#mute(*username) ⇒ Object
411 412 413 |
# File 'lib/ayadn/app.rb', line 411 def mute(*username) Action.new.mute(username) end |
#nowplaying ⇒ Object
572 573 574 575 |
# File 'lib/ayadn/app.rb', line 572 def require_relative("nowplaying") Action.new.() end |
#pin(post_id, *tags) ⇒ Object
460 461 462 463 |
# File 'lib/ayadn/app.rb', line 460 def pin(post_id, *) require_relative("pinboard") 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
319 320 321 |
# File 'lib/ayadn/app.rb', line 319 def postinfo(post_id) Action.new.postinfo(post_id, ) end |
#random ⇒ Object
605 606 607 |
# File 'lib/ayadn/app.rb', line 605 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
397 398 399 |
# File 'lib/ayadn/app.rb', line 397 def repost(*post_id) Action.new.repost(post_id, ) end |
#search(*words) ⇒ Object
274 275 276 277 |
# File 'lib/ayadn/app.rb', line 274 def search(*words) require_relative("search") 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
284 285 286 |
# File 'lib/ayadn/app.rb', line 284 def settings Action.new.view_settings() end |
#star(*post_id) ⇒ Object
389 390 391 |
# File 'lib/ayadn/app.rb', line 389 def star(*post_id) Action.new.star(post_id, ) end |
#switch(*username) ⇒ Object
637 638 639 640 641 642 643 644 |
# File 'lib/ayadn/app.rb', line 637 def switch(*username) require_relative("switch") 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
595 596 597 598 |
# File 'lib/ayadn/app.rb', line 595 def tvshow(*title) require_relative("tvshow") Action.new.tvshow(title, ) end |
#unauthorize(*user) ⇒ Object
626 627 628 629 630 |
# File 'lib/ayadn/app.rb', line 626 def (*user) require_relative("authorize") require_relative("switch") Authorize.new.(user, ) end |
#unblock(*username) ⇒ Object
365 366 367 |
# File 'lib/ayadn/app.rb', line 365 def unblock(*username) Action.new.unblock(username) end |
#unfollow(*username) ⇒ Object
351 352 353 |
# File 'lib/ayadn/app.rb', line 351 def unfollow(*username) Action.new.unfollow(username) end |
#unmute(*username) ⇒ Object
358 359 360 |
# File 'lib/ayadn/app.rb', line 358 def unmute(*username) Action.new.unmute(username) end |
#unrepost(*post_id) ⇒ Object
373 374 375 |
# File 'lib/ayadn/app.rb', line 373 def unrepost(*post_id) Action.new.unrepost(post_id, ) end |
#unstar(*post_id) ⇒ Object
381 382 383 |
# File 'lib/ayadn/app.rb', line 381 def unstar(*post_id) Action.new.unstar(post_id, ) end |
#userinfo(*username) ⇒ Object
293 294 295 |
# File 'lib/ayadn/app.rb', line 293 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
308 309 310 311 |
# File 'lib/ayadn/app.rb', line 308 def userupdate require_relative("profile") Action.new.userupdate() end |
#version ⇒ Object
648 649 650 |
# File 'lib/ayadn/app.rb', line 648 def version Status.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 |