class RubygemsDownloads::CLI::Author
Private Instance Methods
error_message()
click to toggle source
# File lib/rubygems_downloads/cli/author.rb, line 8 def error_message 'User not found.' end
retrieve_data()
click to toggle source
# File lib/rubygems_downloads/cli/author.rb, line 12 def retrieve_data @data = Stats::Author.call(@name) end
rows()
click to toggle source
# File lib/rubygems_downloads/cli/author.rb, line 16 def rows return nil unless @data.present? @data.map.with_index(1) do |gem, index| [ index, *data_from_gem(gem) ] end end