Class: Ayadn::App

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

Instance Method Summary collapse

Instance Method Details

#authorizeObject



519
520
521
# File 'lib/ayadn/app.rb', line 519

def authorize
  Authorize.new.authorize
end

#autoObject



449
450
451
# File 'lib/ayadn/app.rb', line 449

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



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

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



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

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

#messages_unreadObject



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

def messages_unread
    Action.new.messages_unread(options)
end

#movie(*title) ⇒ Object



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

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



485
486
487
# File 'lib/ayadn/app.rb', line 485

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



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

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

#pm(*username) ⇒ Object



418
419
420
# File 'lib/ayadn/app.rb', line 418

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

#post(*args) ⇒ Object



395
396
397
# File 'lib/ayadn/app.rb', line 395

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



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

def random
  Action.new.random_posts(options)
end

#reply(id) ⇒ Object



442
443
444
445
# File 'lib/ayadn/app.rb', line 442

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



430
431
432
# File 'lib/ayadn/app.rb', line 430

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



527
528
529
530
531
532
533
# File 'lib/ayadn/app.rb', line 527

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



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

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



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, 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



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

def write
  Action.new.write(options)
end