21
1
Fork 0
mirror of https://github.com/Evolix/chexpire.git synced 2024-05-22 02:08:49 +02:00
chexpire/app/services/whois/response.rb

19 lines
374 B
Ruby
Raw Normal View History

# Copyright (C) 2018 Colin Darie <colin@darie.eu>, 2018 Evolix <info@evolix.fr>
# License: GNU AGPL-3+ (see full text in LICENSE file)
2018-05-30 12:04:07 +02:00
module Whois
class Response
2018-05-30 16:48:25 +02:00
attr_accessor :created_at
attr_accessor :updated_at
attr_accessor :expire_at
2018-05-30 12:04:07 +02:00
def initialize(domain)
@domain = domain
end
2018-05-30 16:51:24 +02:00
def valid?
created_at.present?
end
2018-05-30 12:04:07 +02:00
end
end