class Ruboty::ItamaeSearch::Actions::AuthorRanking

Public Instance Methods

call() click to toggle source
# File lib/ruboty/itamae_search/actions/author_ranking.rb, line 9
def call
  message.reply(author_ranking)
end

Private Instance Methods

author_ranking() click to toggle source
# File lib/ruboty/itamae_search/actions/author_ranking.rb, line 15
def author_ranking
  call_method(:author_ranking, limit).map.with_index(1) do |gem_info, i|
    "no:#{i},author:#{gem_info[:authors]},downloads:#{gem_info[:downloads]}"
  end.join("\n")
end