Class: Reparty::Report
- Inherits:
-
Object
- Object
- Reparty::Report
- 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
Defined Under Namespace
Classes: ActiveRecord, Mixpanel, Sendgrid
Instance Attribute Summary collapse
-
#color ⇒ Object
readonly
Returns the value of attribute color.
-
#interval ⇒ Object
readonly
Returns the value of attribute interval.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Instance Method Summary collapse
- #attach(attachments) ⇒ Object
-
#initialize(interval, title) ⇒ Report
constructor
A new instance of Report.
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
#color ⇒ Object (readonly)
Returns the value of attribute color.
5 6 7 |
# File 'lib/reparty/report.rb', line 5 def color @color end |
#interval ⇒ Object (readonly)
Returns the value of attribute interval.
5 6 7 |
# File 'lib/reparty/report.rb', line 5 def interval @interval end |
#title ⇒ Object (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() # Optional end |