mirror of
https://github.com/Evolix/chexpire.git
synced 2024-07-01 05:22:53 +02:00
25 lines
500 B
Ruby
25 lines
500 B
Ruby
# Copyright (C) 2018 Colin Darie <colin@darie.eu>, 2018 Evolix <info@evolix.fr>
|
|
# License: GNU AGPL-3+ (see full text in LICENSE file)
|
|
|
|
module Whois
|
|
module Parser
|
|
module Entry
|
|
class Field < Base
|
|
attr_reader :index
|
|
attr_reader :name
|
|
attr_reader :value
|
|
|
|
def initialize(index, name, value)
|
|
super index
|
|
@name = name.strip
|
|
@value = value.strip
|
|
end
|
|
|
|
def field?
|
|
true
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|