Class: Ayadn::App

Inherits:
Thor
  • Object
show all
Defined in:
lib/ayadn/app.rb

Instance Method Summary collapse

Instance Method Details

#authorizeObject



503
504
505
# File 'lib/ayadn/app.rb', line 503

def authorize
  Authorize.new.authorize
end

#autoObject



434
435
436
# File 'lib/ayadn/app.rb', line 434

def auto
  Action.new.auto(options)
end

#block(*username) ⇒ Object



349
350
351
# File 'lib/ayadn/app.rb', line 349

def block(*username)
  Action.new.block(username)
end

#blockedObject



189
190
191
# File 'lib/ayadn/app.rb', line 189

def blocked
  Action.new.blocked(options)
end

#channelsObject



358
359
360
# File 'lib/ayadn/app.rb', line 358

def channels
  Action.new.channels(options)
end

#checkinsObject



34
35
36
# File 'lib/ayadn/app.rb', line 34

def checkins
  Action.new.checkins(options)
end

#conversationsObject



86
87
88
# File 'lib/ayadn/app.rb', line 86

def conversations
  Action.new.conversations(options)
end

#convo(post_id) ⇒ Object



157
158
159
# File 'lib/ayadn/app.rb', line 157

def convo(post_id)
  Action.new.convo(post_id, options)
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



454
455
456
457
# File 'lib/ayadn/app.rb', line 454

def download(file_id)
  ayadn = Action.new
  ayadn.download(file_id)
end

#filesObject



265
266
267
# File 'lib/ayadn/app.rb', line 265

def files
  Action.new.files(options)
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, options)
end

#followings(*username) ⇒ Object



165
166
167
# File 'lib/ayadn/app.rb', line 165

def followings(*username)
  Action.new.followings(username, options)
end

#globalObject



47
48
49
# File 'lib/ayadn/app.rb', line 47

def global
  Action.new.global(options)
end

#hashtag(hashtag) ⇒ Object



199
200
201
# File 'lib/ayadn/app.rb', line 199

def hashtag(hashtag)
  Action.new.hashtag(hashtag, options)
end

#interactionsObject



118
119
120
# File 'lib/ayadn/app.rb', line 118

def interactions
  Action.new.interactions(options)
end

#mentions(*username) ⇒ Object



98
99
100
# File 'lib/ayadn/app.rb', line 98

def mentions(*username)
  Action.new.mentions(username, options)
end

#messages(channel_id) ⇒ Object



369
370
371
# File 'lib/ayadn/app.rb', line 369

def messages(channel_id)
  Action.new.messages(channel_id, options)
end

#movie(*title) ⇒ Object



479
480
481
# File 'lib/ayadn/app.rb', line 479

def movie(*title)
  Action.new.nowwatching(title, options)
end

#mute(*username) ⇒ Object



342
343
344
# File 'lib/ayadn/app.rb', line 342

def mute(*username)
  Action.new.mute(username)
end

#mutedObject



181
182
183
# File 'lib/ayadn/app.rb', line 181

def muted
  Action.new.muted(options)
end

#nowplayingObject



469
470
471
# File 'lib/ayadn/app.rb', line 469

def nowplaying
  Action.new.nowplaying(options)
end

#photosObject



73
74
75
# File 'lib/ayadn/app.rb', line 73

def photos
  Action.new.photos(options)
end

#pin(post_id, *tags) ⇒ Object



375
376
377
# File 'lib/ayadn/app.rb', line 375

def pin(post_id, *tags)
  Action.new.pin(post_id, tags)
end

#pm(*username) ⇒ Object



408
409
410
# File 'lib/ayadn/app.rb', line 408

def pm(*username)
  Action.new.pmess(username, options)
end

#post(*args) ⇒ Object



386
387
388
# File 'lib/ayadn/app.rb', line 386

def post(*args)
  Action.new.post(args, options)
end

#postinfo(post_id) ⇒ Object



255
256
257
# File 'lib/ayadn/app.rb', line 255

def (post_id)
  Action.new.(post_id, options)
end

#randomObject



496
497
498
# File 'lib/ayadn/app.rb', line 496

def random
  Action.new.random_posts(options)
end

#reply(id) ⇒ Object



427
428
429
430
# File 'lib/ayadn/app.rb', line 427

def reply(id)
  ayadn = Action.new
  ayadn.reply(id, options)
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(","), options)
end

#send_to_channel(channel_id) ⇒ Object



415
416
417
# File 'lib/ayadn/app.rb', line 415

def send_to_channel(channel_id)
  Action.new.send_to_channel(channel_id)
end

#settingsObject



223
224
225
# File 'lib/ayadn/app.rb', line 223

def settings
  Action.new.view_settings(options)
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



511
512
513
514
515
516
517
# File 'lib/ayadn/app.rb', line 511

def switch(*username)
  unless options[:list]
    Switch.new.switch(username)
  else
    Switch.new.list
  end
end

#timelineObject

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)"


60
61
62
# File 'lib/ayadn/app.rb', line 60

def trending
  Action.new.trending(options)
end

#tvshow(*title) ⇒ Object



488
489
490
# File 'lib/ayadn/app.rb', line 488

def tvshow(*title)
  Action.new.tvshow(title, options)
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, options)
end

#userposts(*username) ⇒ Object



110
111
112
# File 'lib/ayadn/app.rb', line 110

def userposts(*username)
  Action.new.posts(username, options)
end

#userupdateObject



246
247
248
# File 'lib/ayadn/app.rb', line 246

def userupdate
  Action.new.userupdate(options)
end

#versionObject



521
522
523
# File 'lib/ayadn/app.rb', line 521

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, options)
end

#whoreposted(post_id) ⇒ Object



137
138
139
# File 'lib/ayadn/app.rb', line 137

def whoreposted(post_id)
  Action.new.whoreposted(post_id, options)
end

#whostarred(post_id) ⇒ Object



145
146
147
# File 'lib/ayadn/app.rb', line 145

def whostarred(post_id)
  Action.new.whostarred(post_id, options)
end

#writeObject



398
399
400
# File 'lib/ayadn/app.rb', line 398

def write
  Action.new.write(options)
end