mirror of
https://github.com/internetee/registry.git
synced 2025-06-10 22:54:47 +02:00
14 lines
249 B
Ruby
14 lines
249 B
Ruby
class InactiveContacts
|
|
attr_reader :contacts
|
|
|
|
def initialize(contacts = Contact.archivable)
|
|
@contacts = contacts
|
|
end
|
|
|
|
def archive
|
|
contacts.each do |contact|
|
|
contact.archive
|
|
yield contact if block_given?
|
|
end
|
|
end
|
|
end
|