Method: RecordStore::Record::SRV#initialize
- Defined in:
- lib/record_store/record/srv.rb
#initialize(record) ⇒ SRV
Returns a new instance of SRV.
26 27 28 29 30 31 32 |
# File 'lib/record_store/record/srv.rb', line 26 def initialize(record) super @priority = record.fetch(:priority) @weight = record.fetch(:weight) @port = record.fetch(:port) @target = record.fetch(:target) end |