Class: Ayadn::App

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

Instance Method Summary collapse

Instance Method Details

#authorizeObject



461
462
463
# File 'lib/ayadn/app.rb', line 461

def authorize
  Authorize.new.authorize
end

#autoObject



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

def auto
  Action.new.auto(options)
end

#block(*username) ⇒ Object



322
323
324
# File 'lib/ayadn/app.rb', line 322

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

#blockedObject



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

def blocked
  Action.new.blocked(options)
end

#channelsObject



329
330
331
# File 'lib/ayadn/app.rb', line 329

def channels
  Action.new.channels
end

#checkinsObject



32
33
34
# File 'lib/ayadn/app.rb', line 32

def checkins
  Action.new.checkins(options)
end

#conversationsObject



80
81
82
# File 'lib/ayadn/app.rb', line 80

def conversations
  Action.new.conversations(options)
end

#convo(post_id) ⇒ Object



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

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

#filesObject



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

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

#followings(*username) ⇒ Object



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

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

#globalObject



44
45
46
# File 'lib/ayadn/app.rb', line 44

def global
  Action.new.global(options)
end

#hashtag(hashtag) ⇒ Object



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

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

#interactionsObject



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

def interactions
  Action.new.interactions(options)
end

#mentions(*username) ⇒ Object



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

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

#messages(channel_id) ⇒ Object



340
341
342
# File 'lib/ayadn/app.rb', line 340

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

#movie(*title) ⇒ Object



437
438
439
# File 'lib/ayadn/app.rb', line 437

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

#mute(*username) ⇒ Object



315
316
317
# File 'lib/ayadn/app.rb', line 315

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

#mutedObject



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

def muted
  Action.new.muted(options)
end

#nowplayingObject



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

def nowplaying
  Action.new.nowplaying(options)
end

#photosObject



68
69
70
# File 'lib/ayadn/app.rb', line 68

def photos
  Action.new.photos(options)
end

#pin(post_id, *tags) ⇒ Object



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

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

#pm(*username) ⇒ Object



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

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

#post(*args) ⇒ Object



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

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

#postinfo(post_id) ⇒ Object



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

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

#randomObject



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

def random
  Action.new.random_posts(options)
end

#reply(id) ⇒ Object



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

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

#settingsObject



212
213
214
# File 'lib/ayadn/app.rb', line 212

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


56
57
58
# File 'lib/ayadn/app.rb', line 56

def trending
  Action.new.trending(options)
end

#tvshow(*title) ⇒ Object



446
447
448
# File 'lib/ayadn/app.rb', line 446

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

#userposts(*username) ⇒ Object



102
103
104
# File 'lib/ayadn/app.rb', line 102

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

#versionObject



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

#whoreposted(post_id) ⇒ Object



129
130
131
# File 'lib/ayadn/app.rb', line 129

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

#whostarred(post_id) ⇒ Object



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

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

#writeObject



363
364
365
# File 'lib/ayadn/app.rb', line 363

def write
  Action.new.write(options)
end