class Ruboty::Niftycloud::Actions::AccountList

Public Instance Methods

call() click to toggle source
# File lib/ruboty/niftycloud/actions/account_list.rb, line 5
def call
  accounts.each_with_index do |account, i|
    message.reply("#{i} [#{account[:name] == current_account[:name] ? "*" : " "}] #{account[:name]} - #{account[:description]}")
  end
end