Class: Tweetwine::CLI::UserCommand

Inherits:
Command
  • Object
show all
Defined in:
lib/tweetwine/cli.rb

Instance Method Summary collapse

Methods inherited from Command

abort_with_usage, about, inherited, #initialize, name, register, show_usage, usage

Constructor Details

This class inherits a constructor from Tweetwine::CLI::Command

Instance Method Details

#parse(args) ⇒ Object



368
369
370
# File 'lib/tweetwine/cli.rb', line 368

def parse(args)
  @user = args.empty? ? CLI.config[:username] : args.shift
end

#runObject



372
373
374
# File 'lib/tweetwine/cli.rb', line 372

def run
  CLI.twitter.user(@user)
end