class AllocationStats::AllocationsProxy
def to_text(columns: DEFAULT_COLUMNS)
-
(String)
- information about the Allocations, in a tabular format
Parameters:
-
columns
(Array
) -- a list of columns to print out
def to_text(columns: DEFAULT_COLUMNS) resolved = to_a # if resolved is an Array of Allocations if resolved.is_a?(Array) && resolved.first.is_a?(Allocation) to_text_from_plain(resolved, columns: columns) # if resolved is a Hash (was grouped) elsif resolved.is_a?(Hash) to_text_from_groups(resolved) end end