Class: Atig::Command::Refresh

Inherits:
Command
  • Object
show all
Defined in:
lib/atig/command/refresh.rb

Instance Attribute Summary

Attributes inherited from Command

#api, #db, #gateway, #opts

Instance Method Summary collapse

Methods inherited from Command

#find_by_tid, #initialize

Constructor Details

This class inherits a constructor from Atig::Command::Command

Instance Method Details

#action(target, mesg, command, args) {|"refresh followings/lists..."| ... } ⇒ Object

Yields:

  • ("refresh followings/lists...")


11
12
13
14
15
# File 'lib/atig/command/refresh.rb', line 11

def action(target, mesg, command,args)
  db.followings.invalidate
  db.lists.invalidate :all
  yield "refresh followings/lists..."
end

#command_nameObject



9
# File 'lib/atig/command/refresh.rb', line 9

def command_name; %w(refresh) end