Sha256: 3b507bfaf6a7cbe40c2f54435835f105c47771f140b1415510bdd2b942a511d2
Contents?: true
Size: 553 Bytes
Versions: 23
Compression:
Stored size: 553 Bytes
Contents
class Brief::GenericReport attr_reader :document def initialize(document) @document = document end def briefcase document.try(:briefcase) end def entries [] end def headers [] end end module Brief::Model::Reports def generate_report report_type if data.reports && data.reports.fetch(report_type, nil) klass = data.reports.fetch(report_type.to_s) klass = Object.const_get(klass) unless klass.is_a?(Class) else klass = Brief::GenericReport end klass && klass.new(self) end end
Version data entries
23 entries across 23 versions & 1 rubygems