Class: Lifesaver::Notification::DependentAssociations
- Inherits:
-
Object
- Object
- Lifesaver::Notification::DependentAssociations
- Defined in:
- lib/lifesaver/notification/dependent_associations.rb
Instance Method Summary collapse
- #fetch ⇒ Object
-
#initialize(klass) ⇒ DependentAssociations
constructor
A new instance of DependentAssociations.
Constructor Details
#initialize(klass) ⇒ DependentAssociations
Returns a new instance of DependentAssociations.
4 5 6 |
# File 'lib/lifesaver/notification/dependent_associations.rb', line 4 def initialize(klass) @class = klass end |
Instance Method Details
#fetch ⇒ Object
8 9 10 |
# File 'lib/lifesaver/notification/dependent_associations.rb', line 8 def fetch @dependent_associations ||= populate end |