Class: Twirly::Commands::FetchUser

Inherits:
Base
  • Object
show all
Defined in:
lib/twirly/commands/fetch_user.rb

Instance Attribute Summary

Attributes inherited from Base

#args, #options

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Twirly::Commands::Base

Instance Method Details

#runObject



4
5
6
# File 'lib/twirly/commands/fetch_user.rb', line 4

def run
  (Twirly::Compiler.new).fetch_user Twirly::User.find_by_username(args.first)
end