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.
206 207 208 209 |
# File 'lib/Dnsruby/resource/OPT.rb', line 206 def initialize(code, data) @code = code @data = data end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
205 206 207 |
# File 'lib/Dnsruby/resource/OPT.rb', line 205 def code @code end |
#data ⇒ Object
Returns the value of attribute data.
205 206 207 |
# File 'lib/Dnsruby/resource/OPT.rb', line 205 def data @data end |