class Looks::Command::Unset
Public Instance Methods
arguments()
click to toggle source
# File lib/looks/command/unset.rb, line 9 def arguments [ '<address>' ] end
execute(args)
click to toggle source
Calls superclass method
Looks::Command::AccountManagement#execute
# File lib/looks/command/unset.rb, line 13 def execute(args) super address = args.first account = Gravatar::Account.new(config) begin account.remove_image(address) rescue Gravatar::IncorrectMethodParameterError raise Error, "#{address}: Unknown email address" end end