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.
214 215 216 |
# File 'lib/pdtp/common/protocol.rb', line 214 def initialize(type) @type=type end |
Instance Attribute Details
#type ⇒ Object
Returns the value of attribute type.
213 214 215 |
# File 'lib/pdtp/common/protocol.rb', line 213 def type @type end |