Class: MTP::Properties::Forms::LongString

Inherits:
None
  • Object
show all
Defined in:
lib/mtp/properties.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from None

#pack, #unpack

Constructor Details

#initialize(form, dts) ⇒ LongString

Returns a new instance of LongString.



213
214
215
# File 'lib/mtp/properties.rb', line 213

def initialize(form, dts)
  @max_length = form.unpack("S")
end

Instance Attribute Details

#max_lengthObject (readonly)

Returns the value of attribute max_length.



212
213
214
# File 'lib/mtp/properties.rb', line 212

def max_length
  @max_length
end