class Schatter::Command::ListPeople

Attributes

conversation[R]
help[R]
usage[R]

Public Class Methods

new(conversation) click to toggle source
# File lib/schatter/command/list_people.rb, line 4
def initialize conversation
  @conversation = conversation
  @usage = ''
  @help = 'Lists people in the current conversation'
end

Public Instance Methods

execute(*ignored) click to toggle source
# File lib/schatter/command/list_people.rb, line 10
def execute *ignored
  conversation.people(true).values.each do |person|
    puts "#{person.email}"
  end
end