class GHTRetrieveUser
Public Instance Methods
ght()
click to toggle source
# File lib/ghtorrent/commands/ght_retrieve_user.rb, line 29 def ght @ght ||= TransactedGHTorrent.new(settings) @ght end
go()
click to toggle source
# File lib/ghtorrent/commands/ght_retrieve_user.rb, line 34 def go login = ARGV[0] retrieve_user(login) end
prepare_options(options)
click to toggle source
# File lib/ghtorrent/commands/ght_retrieve_user.rb, line 15 def prepare_options(options) options.banner <<-BANNER An efficient way to get all data for a single user #{command_name} [options] login BANNER end
validate()
click to toggle source
Calls superclass method
GHTorrent::Command#validate
# File lib/ghtorrent/commands/ght_retrieve_user.rb, line 24 def validate super Trollop::die "One argument is required" unless args[0] && !args[0].empty? end