Class: ModelNotifier::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/model_notifier.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#deliver_toObject (readonly)

Returns the value of attribute deliver_to.



47
48
49
# File 'lib/model_notifier.rb', line 47

def deliver_to
  @deliver_to
end

#subject_lineObject (readonly)

Returns the value of attribute subject_line.



49
50
51
# File 'lib/model_notifier.rb', line 49

def subject_line
  @subject_line
end

#watched_modelObject (readonly)

Returns the value of attribute watched_model.



48
49
50
# File 'lib/model_notifier.rb', line 48

def watched_model
  @watched_model
end

Instance Method Details

#model(model_name) ⇒ Object



51
52
53
# File 'lib/model_notifier.rb', line 51

def model(model_name)
  @watched_model = model_name
end

#recipients(recipient) ⇒ Object



54
55
56
# File 'lib/model_notifier.rb', line 54

def recipients(recipient)
  @deliver_to = recipient
end

#subject(subject) ⇒ Object



57
58
59
# File 'lib/model_notifier.rb', line 57

def subject(subject)
  @subject_line = subject
end