Module: Reparty

Defined in:
lib/reparty.rb,
lib/reparty/email.rb,
lib/reparty/config.rb,
lib/reparty/engine.rb,
lib/reparty/report.rb,
lib/reparty/version.rb,
lib/reparty/report/mixpanel.rb,
lib/reparty/report/sendgrid.rb,
lib/reparty/report/active_record.rb

Defined Under Namespace

Classes: Config, Email, Engine, Report

Constant Summary collapse

VERSION =
"0.5.2"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

Returns the value of attribute configuration.



19
20
21
# File 'lib/reparty.rb', line 19

def configuration
  @configuration
end

.reportsObject (readonly)

Returns the value of attribute reports.



20
21
22
# File 'lib/reparty.rb', line 20

def reports
  @reports
end

.weekly_reportsObject (readonly)

Returns the value of attribute weekly_reports.



20
21
22
# File 'lib/reparty.rb', line 20

def weekly_reports
  @weekly_reports
end

Class Method Details

.config {|configuration| ... } ⇒ Object

Yields:



22
23
24
25
26
27
28
29
# File 'lib/reparty.rb', line 22

def config
  self.configuration = Config.new

  yield(configuration)

  @reports = self.configuration.reports
  @weekly_reports = self.configuration.weekly_reports
end

.rootObject



15
16
17
# File 'lib/reparty.rb', line 15

def root
  Pathname.new(File.expand_path('../..', __FILE__))
end