Class: Ayadn::App

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

Instance Method Summary collapse

Instance Method Details

#authorizeObject



588
589
590
# File 'lib/ayadn/app.rb', line 588

def authorize
  Authorize.new.authorize
end

#autoObject



511
512
513
# File 'lib/ayadn/app.rb', line 511

def auto
  Action.new.auto(options)
end

#block(*username) ⇒ Object



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

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

#blockedObject



228
229
230
# File 'lib/ayadn/app.rb', line 228

def blocked
  Action.new.blocked(options)
end

#channelsObject



411
412
413
# File 'lib/ayadn/app.rb', line 411

def channels
  Action.new.channels(options)
end

#checkinsObject



36
37
38
# File 'lib/ayadn/app.rb', line 36

def checkins
  Action.new.checkins(options)
end

#conversationsObject



92
93
94
# File 'lib/ayadn/app.rb', line 92

def conversations
  Action.new.conversations(options)
end

#convo(post_id) ⇒ Object



172
173
174
# File 'lib/ayadn/app.rb', line 172

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

#delete(*post_id) ⇒ Object



317
318
319
# File 'lib/ayadn/app.rb', line 317

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

#delete_m(*args) ⇒ Object



324
325
326
# File 'lib/ayadn/app.rb', line 324

def delete_m(*args)
  Action.new.delete_m(args)
end

#download(file_id) ⇒ Object



531
532
533
534
# File 'lib/ayadn/app.rb', line 531

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

#filesObject



309
310
311
# File 'lib/ayadn/app.rb', line 309

def files
  Action.new.files(options)
end

#follow(*username) ⇒ Object



384
385
386
# File 'lib/ayadn/app.rb', line 384

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

#followers(*username) ⇒ Object



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

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

#followings(*username) ⇒ Object



186
187
188
# File 'lib/ayadn/app.rb', line 186

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

#globalObject



50
51
52
# File 'lib/ayadn/app.rb', line 50

def global
  Action.new.global(options)
end

#hashtag(hashtag) ⇒ Object



239
240
241
# File 'lib/ayadn/app.rb', line 239

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

#interactionsObject



127
128
129
# File 'lib/ayadn/app.rb', line 127

def interactions
  Action.new.interactions(options)
end

#mentions(*username) ⇒ Object



105
106
107
# File 'lib/ayadn/app.rb', line 105

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

#messages(channel_id) ⇒ Object



424
425
426
# File 'lib/ayadn/app.rb', line 424

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

#messages_unreadObject



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

def messages_unread
    Action.new.messages_unread(options)
end

#migrateObject



623
624
625
626
# File 'lib/ayadn/app.rb', line 623

def migrate
  mig = Migration.new
  mig.all
end

#movie(*title) ⇒ Object



561
562
563
# File 'lib/ayadn/app.rb', line 561

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

#mute(*username) ⇒ Object



391
392
393
# File 'lib/ayadn/app.rb', line 391

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

#mutedObject



214
215
216
# File 'lib/ayadn/app.rb', line 214

def muted
  Action.new.muted(options)
end

#nowplayingObject



550
551
552
# File 'lib/ayadn/app.rb', line 550

def nowplaying
  Action.new.nowplaying(options)
end

#photosObject



78
79
80
# File 'lib/ayadn/app.rb', line 78

def photos
  Action.new.photos(options)
end

#pin(post_id, *tags) ⇒ Object



440
441
442
# File 'lib/ayadn/app.rb', line 440

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

#pm(*username) ⇒ Object



477
478
479
# File 'lib/ayadn/app.rb', line 477

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

#post(*args) ⇒ Object



452
453
454
# File 'lib/ayadn/app.rb', line 452

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

#postinfo(post_id) ⇒ Object



299
300
301
# File 'lib/ayadn/app.rb', line 299

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

#randomObject



580
581
582
# File 'lib/ayadn/app.rb', line 580

def random
  Action.new.random_posts(options)
end

#reply(id) ⇒ Object



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

def reply(id)
  ayadn = Action.new
  ayadn.reply(id, options)
end

#repost(*post_id) ⇒ Object



377
378
379
# File 'lib/ayadn/app.rb', line 377

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

#search(*words) ⇒ Object



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

def search(*words)
  Action.new.search(words.join(","), options)
end

#send_to_channel(channel_id) ⇒ Object



490
491
492
# File 'lib/ayadn/app.rb', line 490

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

#settingsObject



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

def settings
  Action.new.view_settings(options)
end

#star(*post_id) ⇒ Object



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

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

#switch(*username) ⇒ Object



606
607
608
609
610
611
612
# File 'lib/ayadn/app.rb', line 606

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


64
65
66
# File 'lib/ayadn/app.rb', line 64

def trending
  Action.new.trending(options)
end

#tvshow(*title) ⇒ Object



571
572
573
# File 'lib/ayadn/app.rb', line 571

def tvshow(*title)
  Action.new.tvshow(title, options)
end

#unauthorize(*user) ⇒ Object



597
598
599
# File 'lib/ayadn/app.rb', line 597

def unauthorize(*user)
  Authorize.new.unauthorize(user, options)
end

#unblock(*username) ⇒ Object



345
346
347
# File 'lib/ayadn/app.rb', line 345

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

#unfollow(*username) ⇒ Object



331
332
333
# File 'lib/ayadn/app.rb', line 331

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

#unmute(*username) ⇒ Object



338
339
340
# File 'lib/ayadn/app.rb', line 338

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

#unrepost(*post_id) ⇒ Object



353
354
355
# File 'lib/ayadn/app.rb', line 353

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

#unstar(*post_id) ⇒ Object



361
362
363
# File 'lib/ayadn/app.rb', line 361

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

#userinfo(*username) ⇒ Object



274
275
276
# File 'lib/ayadn/app.rb', line 274

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

#userposts(*username) ⇒ Object



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

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

#userupdateObject



289
290
291
# File 'lib/ayadn/app.rb', line 289

def userupdate
  Action.new.userupdate(options)
end

#versionObject



616
617
618
# File 'lib/ayadn/app.rb', line 616

def version
  Action.new.version
end

#whatstarred(*username) ⇒ Object



139
140
141
# File 'lib/ayadn/app.rb', line 139

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

#whoreposted(post_id) ⇒ Object



149
150
151
# File 'lib/ayadn/app.rb', line 149

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

#whostarred(post_id) ⇒ Object



159
160
161
# File 'lib/ayadn/app.rb', line 159

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

#writeObject



465
466
467
# File 'lib/ayadn/app.rb', line 465

def write
  Action.new.write(options)
end