Class: Dnsruby::RR::OPT::Option

Inherits:
Object
  • Object
show all
Defined in:
lib/dnsruby/resource/OPT.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code, data) ⇒ Option

Returns a new instance of Option.



265
266
267
268
# File 'lib/dnsruby/resource/OPT.rb', line 265

def initialize(code, data)
  @code = code
  @data = data
end

Instance Attribute Details

#codeObject

Returns the value of attribute code.



264
265
266
# File 'lib/dnsruby/resource/OPT.rb', line 264

def code
  @code
end

#dataObject

Returns the value of attribute data.



264
265
266
# File 'lib/dnsruby/resource/OPT.rb', line 264

def data
  @data
end