123456789_123456789_123456789_123456789_123456789_

Class: Resolv::DNS::Resource::Generic

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
Instance Chain:
Inherits: Resolv::DNS::Resource
Defined in: lib/resolv.rb

Overview

A generic resource abstract class.

Class Method Summary

Instance Attribute Summary

  • #data readonly

    Data for this generic resource.

::Resolv::DNS::Resource - Inherited

#ttl

Remaining Time To Live for this ::Resolv::DNS::Resource.

Constructor Details

.new(data) ⇒ Generic

Creates a new generic resource.

[ GitHub ]

  
# File 'lib/resolv.rb', line 1760

def initialize(data)
  @data = data
end

Instance Attribute Details

#data (readonly)

Data for this generic resource.

[ GitHub ]

  
# File 'lib/resolv.rb', line 1767

attr_reader :data