Class: PDTP::Protocol::Optional
- Inherits:
-
Object
- Object
- PDTP::Protocol::Optional
- Defined in:
- lib/pdtp/common/protocol.rb
Overview
an optional field of the specified type
Instance Attribute Summary collapse
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type) ⇒ Optional
constructor
A new instance of Optional.
Constructor Details
#initialize(type) ⇒ Optional
Returns a new instance of Optional.
221 222 223 |
# File 'lib/pdtp/common/protocol.rb', line 221 def initialize(type) @type=type end |
Instance Attribute Details
#type ⇒ Object
Returns the value of attribute type.
220 221 222 |
# File 'lib/pdtp/common/protocol.rb', line 220 def type @type end |