Class: Splicer::Records::SRVRecord
- Defined in:
- lib/splicer/records/srv_record.rb
Instance Attribute Summary collapse
-
#port ⇒ Object
Returns the value of attribute port.
-
#priority ⇒ Object
Returns the value of attribute priority.
-
#target ⇒ Object
Returns the value of attribute target.
-
#weight ⇒ Object
Returns the value of attribute weight.
Attributes inherited from Record
Instance Method Summary collapse
-
#initialize(name, target, port, priority = 0, weight = 0, ttl = 300) ⇒ SRVRecord
constructor
A new instance of SRVRecord.
- #type ⇒ Object
Methods inherited from Record
Constructor Details
#initialize(name, target, port, priority = 0, weight = 0, ttl = 300) ⇒ SRVRecord
Returns a new instance of SRVRecord.
13 14 15 16 17 18 19 |
# File 'lib/splicer/records/srv_record.rb', line 13 def initialize(name, target, port, priority=0, weight=0, ttl=300) super(name, ttl) @target = target @port = port @priority = priority @weight = weight end |
Instance Attribute Details
#port ⇒ Object
Returns the value of attribute port.
5 6 7 |
# File 'lib/splicer/records/srv_record.rb', line 5 def port @port end |
#priority ⇒ Object
Returns the value of attribute priority.
5 6 7 |
# File 'lib/splicer/records/srv_record.rb', line 5 def priority @priority end |
#target ⇒ Object
Returns the value of attribute target.
5 6 7 |
# File 'lib/splicer/records/srv_record.rb', line 5 def target @target end |
#weight ⇒ Object
Returns the value of attribute weight.
5 6 7 |
# File 'lib/splicer/records/srv_record.rb', line 5 def weight @weight end |
Instance Method Details
#type ⇒ Object
21 22 23 |
# File 'lib/splicer/records/srv_record.rb', line 21 def type 'SRV' end |