Sha256: ecf8c34d4ccd145a9e86813f2ccd5b164e64443d3ba5736e309c0bb5a7c60ef6
Contents?: true
Size: 412 Bytes
Versions: 3
Compression:
Stored size: 412 Bytes
Contents
require "ostruct" module Reparty class Config < ::OpenStruct attr_reader :reports, :weekly_reports def initialize @reports = [] @weekly_reports = [] super end def add_report(report, *args, &block) @reports << report.new(1, *args, &block) end def add_weekly_report(report, *args, &block) @weekly_reports << report.new(7, *args, &block) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
reparty-0.5.2 | lib/reparty/config.rb |
reparty-0.5.1 | lib/reparty/config.rb |
reparty-0.5.0 | lib/reparty/config.rb |