Class: Atig::Command::Limit

Inherits:
Command
  • Object
show all
Defined in:
lib/atig/command/limit.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) {|"#{api.remain} / #{api.limit} (reset at #{::Time.at(api.reset).strftime('%Y-%m-%d %H:%M:%S')})"| ... } ⇒ Object

Yields:

  • ("#{api.remain} / #{api.limit} (reset at #{::Time.at(api.reset).strftime('%Y-%m-%d %H:%M:%S')})")


10
11
12
# File 'lib/atig/command/limit.rb', line 10

def action(target, mesg, command, args)
  yield "#{api.remain} / #{api.limit} (reset at #{::Time.at(api.reset).strftime('%Y-%m-%d %H:%M:%S')})"
end

#command_nameObject



8
# File 'lib/atig/command/limit.rb', line 8

def command_name; %w(rls limit limits) end