mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 01:47:18 +02:00
19 lines
369 B
Ruby
19 lines
369 B
Ruby
class RegistrantChange
|
|
def initialize(domain:, old_registrant:)
|
|
@domain = domain
|
|
@old_registrant = old_registrant
|
|
end
|
|
|
|
def confirm
|
|
notify_registrant
|
|
end
|
|
|
|
private
|
|
|
|
def notify_registrant
|
|
RegistrantChangeMailer.confirmed(domain: domain, old_registrant: old_registrant).deliver_now
|
|
end
|
|
|
|
attr_reader :domain
|
|
attr_reader :old_registrant
|
|
end
|