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
- #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
- #version ⇒ Object
- #whatstarred(*username) ⇒ Object
- #whoreposted(post_id) ⇒ Object
- #whostarred(post_id) ⇒ Object
- #write ⇒ Object
Instance Method Details
#authorize ⇒ Object
461 462 463 |
# File 'lib/ayadn/app.rb', line 461 def Authorize.new. end |
#block(*username) ⇒ Object
322 323 324 |
# File 'lib/ayadn/app.rb', line 322 def block(*username) Action.new.block(username) end |
#blocked ⇒ Object
180 181 182 |
# File 'lib/ayadn/app.rb', line 180 def blocked Action.new.blocked() end |
#channels ⇒ Object
329 330 331 |
# File 'lib/ayadn/app.rb', line 329 def channels Action.new.channels end |
#checkins ⇒ Object
32 33 34 |
# File 'lib/ayadn/app.rb', line 32 def checkins Action.new.checkins() end |
#conversations ⇒ Object
80 81 82 |
# File 'lib/ayadn/app.rb', line 80 def conversations Action.new.conversations() end |
#convo(post_id) ⇒ Object
148 149 150 |
# File 'lib/ayadn/app.rb', line 148 def convo(post_id) Action.new.convo(post_id, ) end |
#delete(*post_id) ⇒ Object
245 246 247 |
# File 'lib/ayadn/app.rb', line 245 def delete(*post_id) Action.new.delete(post_id) end |
#delete_m(*args) ⇒ Object
252 253 254 |
# File 'lib/ayadn/app.rb', line 252 def delete_m(*args) Action.new.delete_m(args) end |
#download(file_id) ⇒ Object
412 413 414 415 |
# File 'lib/ayadn/app.rb', line 412 def download(file_id) ayadn = Action.new ayadn.download(file_id) end |
#follow(*username) ⇒ Object
308 309 310 |
# File 'lib/ayadn/app.rb', line 308 def follow(*username) Action.new.follow(username) end |
#followers(*username) ⇒ Object
164 165 166 |
# File 'lib/ayadn/app.rb', line 164 def followers(*username) Action.new.followers(username, ) end |
#followings(*username) ⇒ Object
156 157 158 |
# File 'lib/ayadn/app.rb', line 156 def followings(*username) Action.new.followings(username, ) end |
#hashtag(hashtag) ⇒ Object
189 190 191 |
# File 'lib/ayadn/app.rb', line 189 def hashtag(hashtag) Action.new.hashtag(hashtag, ) end |
#interactions ⇒ Object
110 111 112 |
# File 'lib/ayadn/app.rb', line 110 def interactions Action.new.interactions() end |
#mentions(*username) ⇒ Object
91 92 93 |
# File 'lib/ayadn/app.rb', line 91 def mentions(*username) Action.new.mentions(username, ) end |
#messages(channel_id) ⇒ Object
340 341 342 |
# File 'lib/ayadn/app.rb', line 340 def (channel_id) Action.new.(channel_id, ) end |
#movie(*title) ⇒ Object
437 438 439 |
# File 'lib/ayadn/app.rb', line 437 def movie(*title) Action.new.nowwatching(title, ) end |
#mute(*username) ⇒ Object
315 316 317 |
# File 'lib/ayadn/app.rb', line 315 def mute(*username) Action.new.mute(username) end |
#pin(post_id, *tags) ⇒ Object
346 347 348 |
# File 'lib/ayadn/app.rb', line 346 def pin(post_id, *) Action.new.pin(post_id, ) end |
#pm(*username) ⇒ Object
370 371 372 |
# File 'lib/ayadn/app.rb', line 370 def pm(*username) Action.new.pmess(username, ) end |
#post(*args) ⇒ Object
354 355 356 |
# File 'lib/ayadn/app.rb', line 354 def post(*args) Action.new.post(args, ) end |
#postinfo(post_id) ⇒ Object
228 229 230 |
# File 'lib/ayadn/app.rb', line 228 def postinfo(post_id) Action.new.postinfo(post_id, ) end |
#random ⇒ Object
454 455 456 |
# File 'lib/ayadn/app.rb', line 454 def random Action.new.random_posts() end |
#reply(id) ⇒ Object
385 386 387 388 |
# File 'lib/ayadn/app.rb', line 385 def reply(id) ayadn = Action.new ayadn.reply(id, ) end |
#repost(post_id) ⇒ Object
301 302 303 |
# File 'lib/ayadn/app.rb', line 301 def repost(post_id) Action.new.repost(post_id) end |
#search(*words) ⇒ Object
204 205 206 |
# File 'lib/ayadn/app.rb', line 204 def search(*words) Action.new.search(words.join(","), ) end |
#send_to_channel(channel_id) ⇒ Object
377 378 379 |
# File 'lib/ayadn/app.rb', line 377 def send_to_channel(channel_id) Action.new.send_to_channel(channel_id) end |
#settings ⇒ Object
212 213 214 |
# File 'lib/ayadn/app.rb', line 212 def settings Action.new.view_settings() end |
#star(post_id) ⇒ Object
294 295 296 |
# File 'lib/ayadn/app.rb', line 294 def star(post_id) Action.new.star(post_id) end |
#switch(*username) ⇒ Object
469 470 471 472 473 474 475 |
# File 'lib/ayadn/app.rb', line 469 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
56 57 58 |
# File 'lib/ayadn/app.rb', line 56 def trending Action.new.trending() end |
#tvshow(*title) ⇒ Object
446 447 448 |
# File 'lib/ayadn/app.rb', line 446 def tvshow(*title) Action.new.tvshow(title, ) end |
#unblock(*username) ⇒ Object
273 274 275 |
# File 'lib/ayadn/app.rb', line 273 def unblock(*username) Action.new.unblock(username) end |
#unfollow(*username) ⇒ Object
259 260 261 |
# File 'lib/ayadn/app.rb', line 259 def unfollow(*username) Action.new.unfollow(username) end |
#unmute(*username) ⇒ Object
266 267 268 |
# File 'lib/ayadn/app.rb', line 266 def unmute(*username) Action.new.unmute(username) end |
#unrepost(post_id) ⇒ Object
280 281 282 |
# File 'lib/ayadn/app.rb', line 280 def unrepost(post_id) Action.new.unrepost(post_id) end |
#unstar(post_id) ⇒ Object
287 288 289 |
# File 'lib/ayadn/app.rb', line 287 def unstar(post_id) Action.new.unstar(post_id) end |
#userinfo(*username) ⇒ Object
220 221 222 |
# File 'lib/ayadn/app.rb', line 220 def userinfo(*username) Action.new.userinfo(username, ) end |
#userposts(*username) ⇒ Object
102 103 104 |
# File 'lib/ayadn/app.rb', line 102 def userposts(*username) Action.new.posts(username, ) end |
#version ⇒ Object
479 480 481 |
# File 'lib/ayadn/app.rb', line 479 def version Action.new.version end |
#whatstarred(*username) ⇒ Object
121 122 123 |
# File 'lib/ayadn/app.rb', line 121 def whatstarred(*username) Action.new.whatstarred(username, ) end |
#whoreposted(post_id) ⇒ Object
129 130 131 |
# File 'lib/ayadn/app.rb', line 129 def whoreposted(post_id) Action.new.whoreposted(post_id, ) end |
#whostarred(post_id) ⇒ Object
137 138 139 |
# File 'lib/ayadn/app.rb', line 137 def whostarred(post_id) Action.new.whostarred(post_id, ) end |