app/presenters/tree_builder_chargeback.rb
# Get root nodes count/array for explorer tree
Get root nodes count/array for explorer tree
Get root nodes count / array for explorer tree
def x_get_tree_roots(count_only, _options)
    rate_types = ChargebackRate::VALID_CB_RATE_TYPES
    return rate_types.length if count_only
    rate_types.map do |type|
      {
        :id   => type,
        :text => type,
        :icon => type.downcase == "compute" ? "pficon pficon-cpu" : "fa fa-hdd-o",
        :tip  => type
      }
    end
  end
def x_get_tree_roots ( count_only , _options ) rate_types = ChargebackRate :: VALID_CB_RATE_TYPES return rate_types . length if count_only rate_types . map do | type | { :id => type , :text => type , :icon => type . downcase == "compute" ? "pficon pficon-cpu" : "fa fa-hdd-o" , :tip => type } end end
Get root nodes count/array for explorer tree
Get root nodes count / array for explorer tree
count_only
<not_specific>
_options
<not_specific>