module Bl::Printer

Public Instance Methods

print_response(res, resource) click to toggle source
printable_issues(ary) click to toggle source
# File lib/bl/printer.rb, line 34
def printable_issues(ary)
  ary = Array(ary)
  ary.each do |v|
    v.issueType = v.issueType.name
    v.assignee = v.assignee.name if v.assignee
    v.status = v.status.name
    v.priority = v.priority.name
    v.startDate = format_date(v.startDate)
    v.dueDate = format_date(v.dueDate)
    v.created = format_datetime(v.created)
    v.updated = format_datetime(v.updated)
  end
  ary
end