mirror of
https://github.com/internetee/registry.git
synced 2025-08-05 09:21:43 +02:00
parent
bfc0c0b74f
commit
876c010435
17 changed files with 156 additions and 273 deletions
19
app/services/registrant_change.rb
Normal file
19
app/services/registrant_change.rb
Normal file
|
@ -0,0 +1,19 @@
|
|||
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
|
Loading…
Add table
Add a link
Reference in a new issue