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.



206
207
208
209
# File 'lib/Dnsruby/resource/OPT.rb', line 206

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

Instance Attribute Details

#codeObject

Returns the value of attribute code.



205
206
207
# File 'lib/Dnsruby/resource/OPT.rb', line 205

def code
  @code
end

#dataObject

Returns the value of attribute data.



205
206
207
# File 'lib/Dnsruby/resource/OPT.rb', line 205

def data
  @data
end