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.



214
215
216
# File 'lib/pdtp/common/protocol.rb', line 214

def initialize(type)
  @type=type
end

Instance Attribute Details

#typeObject

Returns the value of attribute type.



213
214
215
# File 'lib/pdtp/common/protocol.rb', line 213

def type
  @type
end