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
- #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
- #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
519 520 521 |
# File 'lib/ayadn/app.rb', line 519 def Authorize.new. end |
#block(*username) ⇒ Object
349 350 351 |
# File 'lib/ayadn/app.rb', line 349 def block(*username) Action.new.block(username) end |
#blocked ⇒ Object
189 190 191 |
# File 'lib/ayadn/app.rb', line 189 def blocked Action.new.blocked() end |
#channels ⇒ Object
358 359 360 |
# File 'lib/ayadn/app.rb', line 358 def channels Action.new.channels() end |
#checkins ⇒ Object
34 35 36 |
# File 'lib/ayadn/app.rb', line 34 def checkins Action.new.checkins() end |
#conversations ⇒ Object
86 87 88 |
# File 'lib/ayadn/app.rb', line 86 def conversations Action.new.conversations() end |
#convo(post_id) ⇒ Object
157 158 159 |
# File 'lib/ayadn/app.rb', line 157 def convo(post_id) Action.new.convo(post_id, ) end |
#delete(*post_id) ⇒ Object
272 273 274 |
# File 'lib/ayadn/app.rb', line 272 def delete(*post_id) Action.new.delete(post_id) end |
#delete_m(*args) ⇒ Object
279 280 281 |
# File 'lib/ayadn/app.rb', line 279 def delete_m(*args) Action.new.delete_m(args) end |
#download(file_id) ⇒ Object
469 470 471 472 |
# File 'lib/ayadn/app.rb', line 469 def download(file_id) ayadn = Action.new ayadn.download(file_id) end |
#follow(*username) ⇒ Object
335 336 337 |
# File 'lib/ayadn/app.rb', line 335 def follow(*username) Action.new.follow(username) end |
#followers(*username) ⇒ Object
173 174 175 |
# File 'lib/ayadn/app.rb', line 173 def followers(*username) Action.new.followers(username, ) end |
#followings(*username) ⇒ Object
165 166 167 |
# File 'lib/ayadn/app.rb', line 165 def followings(*username) Action.new.followings(username, ) end |
#hashtag(hashtag) ⇒ Object
199 200 201 |
# File 'lib/ayadn/app.rb', line 199 def hashtag(hashtag) Action.new.hashtag(hashtag, ) end |
#interactions ⇒ Object
118 119 120 |
# File 'lib/ayadn/app.rb', line 118 def interactions Action.new.interactions() end |
#mentions(*username) ⇒ Object
98 99 100 |
# File 'lib/ayadn/app.rb', line 98 def mentions(*username) Action.new.mentions(username, ) end |
#messages(channel_id) ⇒ Object
370 371 372 |
# File 'lib/ayadn/app.rb', line 370 def (channel_id) Action.new.(channel_id, ) end |
#movie(*title) ⇒ Object
495 496 497 |
# File 'lib/ayadn/app.rb', line 495 def movie(*title) Action.new.nowwatching(title, ) end |
#mute(*username) ⇒ Object
342 343 344 |
# File 'lib/ayadn/app.rb', line 342 def mute(*username) Action.new.mute(username) end |
#pin(post_id, *tags) ⇒ Object
384 385 386 |
# File 'lib/ayadn/app.rb', line 384 def pin(post_id, *) Action.new.pin(post_id, ) end |
#pm(*username) ⇒ Object
418 419 420 |
# File 'lib/ayadn/app.rb', line 418 def pm(*username) Action.new.pmess(username, ) end |
#post(*args) ⇒ Object
395 396 397 |
# File 'lib/ayadn/app.rb', line 395 def post(*args) Action.new.post(args, ) end |
#postinfo(post_id) ⇒ Object
255 256 257 |
# File 'lib/ayadn/app.rb', line 255 def postinfo(post_id) Action.new.postinfo(post_id, ) end |
#random ⇒ Object
512 513 514 |
# File 'lib/ayadn/app.rb', line 512 def random Action.new.random_posts() end |
#reply(id) ⇒ Object
442 443 444 445 |
# File 'lib/ayadn/app.rb', line 442 def reply(id) ayadn = Action.new ayadn.reply(id, ) end |
#repost(post_id) ⇒ Object
328 329 330 |
# File 'lib/ayadn/app.rb', line 328 def repost(post_id) Action.new.repost(post_id) end |
#search(*words) ⇒ Object
215 216 217 |
# File 'lib/ayadn/app.rb', line 215 def search(*words) Action.new.search(words.join(","), ) end |
#send_to_channel(channel_id) ⇒ Object
430 431 432 |
# File 'lib/ayadn/app.rb', line 430 def send_to_channel(channel_id) Action.new.send_to_channel(channel_id, ) end |
#settings ⇒ Object
223 224 225 |
# File 'lib/ayadn/app.rb', line 223 def settings Action.new.view_settings() end |
#star(post_id) ⇒ Object
321 322 323 |
# File 'lib/ayadn/app.rb', line 321 def star(post_id) Action.new.star(post_id) end |
#switch(*username) ⇒ Object
527 528 529 530 531 532 533 |
# File 'lib/ayadn/app.rb', line 527 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
60 61 62 |
# File 'lib/ayadn/app.rb', line 60 def trending Action.new.trending() end |
#tvshow(*title) ⇒ Object
504 505 506 |
# File 'lib/ayadn/app.rb', line 504 def tvshow(*title) Action.new.tvshow(title, ) end |
#unblock(*username) ⇒ Object
300 301 302 |
# File 'lib/ayadn/app.rb', line 300 def unblock(*username) Action.new.unblock(username) end |
#unfollow(*username) ⇒ Object
286 287 288 |
# File 'lib/ayadn/app.rb', line 286 def unfollow(*username) Action.new.unfollow(username) end |
#unmute(*username) ⇒ Object
293 294 295 |
# File 'lib/ayadn/app.rb', line 293 def unmute(*username) Action.new.unmute(username) end |
#unrepost(post_id) ⇒ Object
307 308 309 |
# File 'lib/ayadn/app.rb', line 307 def unrepost(post_id) Action.new.unrepost(post_id) end |
#unstar(post_id) ⇒ Object
314 315 316 |
# File 'lib/ayadn/app.rb', line 314 def unstar(post_id) Action.new.unstar(post_id) end |
#userinfo(*username) ⇒ Object
231 232 233 |
# File 'lib/ayadn/app.rb', line 231 def userinfo(*username) Action.new.userinfo(username, ) end |
#userposts(*username) ⇒ Object
110 111 112 |
# File 'lib/ayadn/app.rb', line 110 def userposts(*username) Action.new.posts(username, ) end |
#userupdate ⇒ Object
246 247 248 |
# File 'lib/ayadn/app.rb', line 246 def userupdate Action.new.userupdate() end |
#version ⇒ Object
537 538 539 |
# File 'lib/ayadn/app.rb', line 537 def version Action.new.version end |
#whatstarred(*username) ⇒ Object
129 130 131 |
# File 'lib/ayadn/app.rb', line 129 def whatstarred(*username) Action.new.whatstarred(username, ) end |
#whoreposted(post_id) ⇒ Object
137 138 139 |
# File 'lib/ayadn/app.rb', line 137 def whoreposted(post_id) Action.new.whoreposted(post_id, ) end |
#whostarred(post_id) ⇒ Object
145 146 147 |
# File 'lib/ayadn/app.rb', line 145 def whostarred(post_id) Action.new.whostarred(post_id, ) end |