Class: Reparty::Report

Inherits:
Object
  • Object
show all
Defined in:
lib/reparty/report.rb,
lib/reparty/report/mixpanel.rb,
lib/reparty/report/sendgrid.rb,
lib/reparty/report/active_record.rb

Direct Known Subclasses

ActiveRecord, Mixpanel, Sendgrid

Defined Under Namespace

Classes: ActiveRecord, Mixpanel, Sendgrid

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(interval, title) ⇒ Report

Returns a new instance of Report.



7
8
9
10
11
12
13
14
# File 'lib/reparty/report.rb', line 7

def initialize(interval, title)
  @interval = interval

  raise "Report: title must be defined" if title.blank?
  @title = title

  @color = "#832701"
end

Instance Attribute Details

#colorObject (readonly)

Returns the value of attribute color.



5
6
7
# File 'lib/reparty/report.rb', line 5

def color
  @color
end

#intervalObject (readonly)

Returns the value of attribute interval.



5
6
7
# File 'lib/reparty/report.rb', line 5

def interval
  @interval
end

#titleObject (readonly)

Returns the value of attribute title.



5
6
7
# File 'lib/reparty/report.rb', line 5

def title
  @title
end

Instance Method Details

#attach(attachments) ⇒ Object



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

def attach(attachments)
  # Optional
end