class Ruboty::AppAnnie::Actions::ListAccounts
Public Instance Methods
call()
click to toggle source
# File lib/ruboty/app_annie/actions/list_accounts.rb, line 5 def call list_accounts end
Private Instance Methods
accounts()
click to toggle source
# File lib/ruboty/app_annie/actions/list_accounts.rb, line 15 def accounts client.accounts.body.accounts.map do |account| "ID: #{account.account_id}, Market: #{account.market}, Name: #{account.account_name}" end end
list_accounts()
click to toggle source
# File lib/ruboty/app_annie/actions/list_accounts.rb, line 11 def list_accounts message.reply(accounts.join("\n"), code: true) end