Class: Registrar::NameServer
- Inherits:
-
Object
- Object
- Registrar::NameServer
- Includes:
- Comparable
- Defined in:
- lib/registrar/name_server.rb
Instance Attribute Summary collapse
-
#ip_address ⇒ Object
Returns the value of attribute ip_address.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
- #<=>(other) ⇒ Object
-
#initialize(name) ⇒ NameServer
constructor
A new instance of NameServer.
Constructor Details
#initialize(name) ⇒ NameServer
Returns a new instance of NameServer.
8 9 10 |
# File 'lib/registrar/name_server.rb', line 8 def initialize(name) @name = name end |
Instance Attribute Details
#ip_address ⇒ Object
Returns the value of attribute ip_address.
6 7 8 |
# File 'lib/registrar/name_server.rb', line 6 def ip_address @ip_address end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/registrar/name_server.rb', line 5 def name @name end |
Instance Method Details
#<=>(other) ⇒ Object
12 13 14 |
# File 'lib/registrar/name_server.rb', line 12 def <=> other self.name <=> other.name end |