Class: Teems::Commands::Who
- Includes:
- WhoDisplay, WhoPresence, WhoSchedule, Support::Timezone
- Defined in:
- lib/teems/commands/who.rb
Overview
Look up a user’s profile
Constant Summary
Constants included from WhoSchedule
Teems::Commands::WhoSchedule::DEFAULT_WORK_HOURS, Teems::Commands::WhoSchedule::SLOTS_PER_HOUR, Teems::Commands::WhoSchedule::SLOT_CHARS, Teems::Commands::WhoSchedule::STATUS_LABELS
Constants included from Support::Timezone
Support::Timezone::TIMEZONE_MAP
Instance Attribute Summary
Attributes inherited from Base
#options, #positional_args, #runner
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(args, runner:) ⇒ Who
constructor
A new instance of Who.
Methods included from Support::Timezone
#detect_timezone, #short_tz_label
Constructor Details
#initialize(args, runner:) ⇒ Who
Returns a new instance of Who.
264 265 266 267 |
# File 'lib/teems/commands/who.rb', line 264 def initialize(args, runner:) @options = {} super end |
Instance Method Details
#execute ⇒ Object
269 270 271 272 273 274 275 276 277 |
# File 'lib/teems/commands/who.rb', line 269 def execute result = return result if result auth_result = require_auth return auth_result if auth_result lookup_user end |