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
- #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
- #trending ⇒ 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
439 440 441 |
# File 'lib/ayadn/app.rb', line 439 def Authorize.new. end |
#block(*username) ⇒ Object
319 320 321 |
# File 'lib/ayadn/app.rb', line 319 def block(*username) Action.new.block(username) end |
#blocked ⇒ Object
177 178 179 |
# File 'lib/ayadn/app.rb', line 177 def blocked Action.new.blocked() end |
#channels ⇒ Object
326 327 328 |
# File 'lib/ayadn/app.rb', line 326 def channels Action.new.channels end |
#checkins ⇒ Object
29 30 31 |
# File 'lib/ayadn/app.rb', line 29 def checkins Action.new.checkins() end |
#conversations ⇒ Object
77 78 79 |
# File 'lib/ayadn/app.rb', line 77 def conversations Action.new.conversations() end |
#convo(post_id) ⇒ Object
145 146 147 |
# File 'lib/ayadn/app.rb', line 145 def convo(post_id) Action.new.convo(post_id, ) end |
#delete(post_id) ⇒ Object
242 243 244 |
# File 'lib/ayadn/app.rb', line 242 def delete(post_id) Action.new.delete(post_id) end |
#delete_m(*args) ⇒ Object
249 250 251 |
# File 'lib/ayadn/app.rb', line 249 def delete_m(*args) Action.new.delete_m(args) end |
#download(file_id) ⇒ Object
409 410 411 412 |
# File 'lib/ayadn/app.rb', line 409 def download(file_id) ayadn = Action.new ayadn.download(file_id) end |
#follow(*username) ⇒ Object
305 306 307 |
# File 'lib/ayadn/app.rb', line 305 def follow(*username) Action.new.follow(username) end |
#followers(*username) ⇒ Object
161 162 163 |
# File 'lib/ayadn/app.rb', line 161 def followers(*username) Action.new.followers(username, ) end |
#followings(*username) ⇒ Object
153 154 155 |
# File 'lib/ayadn/app.rb', line 153 def followings(*username) Action.new.followings(username, ) end |
#hashtag(hashtag) ⇒ Object
186 187 188 |
# File 'lib/ayadn/app.rb', line 186 def hashtag(hashtag) Action.new.hashtag(hashtag, ) end |
#interactions ⇒ Object
107 108 109 |
# File 'lib/ayadn/app.rb', line 107 def interactions Action.new.interactions() end |
#mentions(*username) ⇒ Object
88 89 90 |
# File 'lib/ayadn/app.rb', line 88 def mentions(*username) Action.new.mentions(username, ) end |
#messages(channel_id) ⇒ Object
337 338 339 |
# File 'lib/ayadn/app.rb', line 337 def (channel_id) Action.new.(channel_id, ) end |
#mute(*username) ⇒ Object
312 313 314 |
# File 'lib/ayadn/app.rb', line 312 def mute(*username) Action.new.mute(username) end |
#pin(post_id, *tags) ⇒ Object
343 344 345 |
# File 'lib/ayadn/app.rb', line 343 def pin(post_id, *) Action.new.pin(post_id, ) end |
#pm(*username) ⇒ Object
367 368 369 |
# File 'lib/ayadn/app.rb', line 367 def pm(*username) Action.new.pmess(username, ) end |
#post(*args) ⇒ Object
351 352 353 |
# File 'lib/ayadn/app.rb', line 351 def post(*args) Action.new.post(args, ) end |
#postinfo(post_id) ⇒ Object
225 226 227 |
# File 'lib/ayadn/app.rb', line 225 def postinfo(post_id) Action.new.postinfo(post_id, ) end |
#random ⇒ Object
432 433 434 |
# File 'lib/ayadn/app.rb', line 432 def random Action.new.random_posts() end |
#reply(id) ⇒ Object
382 383 384 385 |
# File 'lib/ayadn/app.rb', line 382 def reply(id) ayadn = Action.new ayadn.reply(id, ) end |
#repost(post_id) ⇒ Object
298 299 300 |
# File 'lib/ayadn/app.rb', line 298 def repost(post_id) Action.new.repost(post_id) end |
#search(*words) ⇒ Object
201 202 203 |
# File 'lib/ayadn/app.rb', line 201 def search(*words) Action.new.search(words.join(","), ) end |
#send_to_channel(channel_id) ⇒ Object
374 375 376 |
# File 'lib/ayadn/app.rb', line 374 def send_to_channel(channel_id) Action.new.send_to_channel(channel_id) end |
#settings ⇒ Object
209 210 211 |
# File 'lib/ayadn/app.rb', line 209 def settings Action.new.view_settings() end |
#star(post_id) ⇒ Object
291 292 293 |
# File 'lib/ayadn/app.rb', line 291 def star(post_id) Action.new.star(post_id) end |
#switch(*username) ⇒ Object
447 448 449 450 451 452 453 |
# File 'lib/ayadn/app.rb', line 447 def switch(*username) unless [:list] Switch.new.switch(username) else Switch.new.list end end |
#timeline ⇒ Object
17 18 19 |
# File 'lib/ayadn/app.rb', line 17 def timeline Action.new.unified() end |
#trending ⇒ Object
53 54 55 |
# File 'lib/ayadn/app.rb', line 53 def trending Action.new.trending() end |
#unblock(*username) ⇒ Object
270 271 272 |
# File 'lib/ayadn/app.rb', line 270 def unblock(*username) Action.new.unblock(username) end |
#unfollow(*username) ⇒ Object
256 257 258 |
# File 'lib/ayadn/app.rb', line 256 def unfollow(*username) Action.new.unfollow(username) end |
#unmute(*username) ⇒ Object
263 264 265 |
# File 'lib/ayadn/app.rb', line 263 def unmute(*username) Action.new.unmute(username) end |
#unrepost(post_id) ⇒ Object
277 278 279 |
# File 'lib/ayadn/app.rb', line 277 def unrepost(post_id) Action.new.unrepost(post_id) end |
#unstar(post_id) ⇒ Object
284 285 286 |
# File 'lib/ayadn/app.rb', line 284 def unstar(post_id) Action.new.unstar(post_id) end |
#userinfo(*username) ⇒ Object
217 218 219 |
# File 'lib/ayadn/app.rb', line 217 def userinfo(*username) Action.new.userinfo(username, ) end |
#userposts(*username) ⇒ Object
99 100 101 |
# File 'lib/ayadn/app.rb', line 99 def userposts(*username) Action.new.posts(username, ) end |
#version ⇒ Object
457 458 459 460 461 462 463 |
# File 'lib/ayadn/app.rb', line 457 def version puts "\nAYADN\n".color(:red) puts "Version:\t".color(:cyan) + "#{VERSION}\n".color(:green) puts "Changelog:\t".color(:cyan) + "https://github.com/ericdke/na/blob/master/CHANGELOG.md\n".color(:yellow) puts "Docs:\t\t".color(:cyan) + "http://ayadn-app.net/doc/".color(:yellow) puts "\n" end |
#whatstarred(*username) ⇒ Object
118 119 120 |
# File 'lib/ayadn/app.rb', line 118 def whatstarred(*username) Action.new.whatstarred(username, ) end |
#whoreposted(post_id) ⇒ Object
126 127 128 |
# File 'lib/ayadn/app.rb', line 126 def whoreposted(post_id) Action.new.whoreposted(post_id, ) end |
#whostarred(post_id) ⇒ Object
134 135 136 |
# File 'lib/ayadn/app.rb', line 134 def whostarred(post_id) Action.new.whostarred(post_id, ) end |