lib/tribe_challenge/tribe_bundles.rb
def bundle_counts(code)
      response = bundles(code)
      return false if response == false

      return response.map { |h| h[:count] }
    end
##
# Get all counts for a specific bundle.
#
# @param [Symbol] code, the code for the bundles we are interested in.
#
# @return [Array], all the counts found for specific code.
##
Get all counts for a specific bundle.
Get all counts for a specific bundle .
def bundle_counts(code)
      response = bundles(code)
      return false if response == false
      return response.map { |h| h[:count] }
    end
def bundle_counts ( code ) response = bundles ( code ) return false if response == false return response . map { | h | h [ :count ] } end
Get all counts for a specific bundle.
Get all counts for a specific bundle .
, all the counts found for specific code.
all the counts found for specific code .
Array
code
code, the code for the bundles we are interested in.
code the code for the bundles we are interested in .