Class: Dnsruby::RR::OPT::Option
- Inherits:
-
Object
- Object
- Dnsruby::RR::OPT::Option
- Defined in:
- lib/dnsruby/resource/OPT.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#data ⇒ Object
Returns the value of attribute data.
Instance Method Summary collapse
-
#initialize(code, data) ⇒ Option
constructor
A new instance of Option.
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
#code ⇒ Object
Returns the value of attribute code.
264 265 266 |
# File 'lib/dnsruby/resource/OPT.rb', line 264 def code @code end |
#data ⇒ Object
Returns the value of attribute data.
264 265 266 |
# File 'lib/dnsruby/resource/OPT.rb', line 264 def data @data end |