Module: JobNotifier::Identifier::ClassMethods
- Defined in:
- lib/job_notifier/identifier.rb
Instance Method Summary collapse
- #identifier_attrs ⇒ Object
- #identify_job_through(*attrs, &block) ⇒ Object
- #job_identifier_proc ⇒ Object
Instance Method Details
#identifier_attrs ⇒ Object
37 38 39 |
# File 'lib/job_notifier/identifier.rb', line 37 def identifier_attrs @identifier_attrs end |
#identify_job_through(*attrs, &block) ⇒ Object
29 30 31 32 33 34 35 |
# File 'lib/job_notifier/identifier.rb', line 29 def identify_job_through(*attrs, &block) if block @job_identifier_proc = block else @identifier_attrs = attrs end end |
#job_identifier_proc ⇒ Object
41 42 43 |
# File 'lib/job_notifier/identifier.rb', line 41 def job_identifier_proc @job_identifier_proc end |