Class: PDTP::Protocol::Optional

Inherits:
Object
  • Object
show all
Defined in:
lib/pdtp/common/protocol.rb

Overview

an optional field of the specified type

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#typeObject

Returns the value of attribute type.



220
221
222
# File 'lib/pdtp/common/protocol.rb', line 220

def type
  @type
end