Class: Digestifier::Digest
- Inherits:
-
Object
- Object
- Digestifier::Digest
- Defined in:
- lib/digestifier/digest.rb
Instance Attribute Summary collapse
-
#contents ⇒ Object
Returns the value of attribute contents.
-
#default_frequency ⇒ Object
Returns the value of attribute default_frequency.
-
#recipients ⇒ Object
Returns the value of attribute recipients.
Instance Method Summary collapse
-
#initialize ⇒ Digest
constructor
A new instance of Digest.
Constructor Details
#initialize ⇒ Digest
Returns a new instance of Digest.
4 5 6 7 |
# File 'lib/digestifier/digest.rb', line 4 def initialize @default_frequency = 24.hours @recipients = lambda { User.order(:id) } end |
Instance Attribute Details
#contents ⇒ Object
Returns the value of attribute contents.
2 3 4 |
# File 'lib/digestifier/digest.rb', line 2 def contents @contents end |
#default_frequency ⇒ Object
Returns the value of attribute default_frequency.
2 3 4 |
# File 'lib/digestifier/digest.rb', line 2 def default_frequency @default_frequency end |
#recipients ⇒ Object
Returns the value of attribute recipients.
2 3 4 |
# File 'lib/digestifier/digest.rb', line 2 def recipients @recipients end |