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