Class: RubySMB::Dcerpc::Epm::EpmTwrt

Inherits:
Ndr::NdrStruct show all
Defined in:
lib/ruby_smb/dcerpc/epm/epm_twrt.rb

Overview

Direct Known Subclasses

EpmTwrpt

Instance Method Summary collapse

Methods inherited from Ndr::NdrStruct

#initialize_shared_instance, method_missing, validate_conformant_array

Instance Method Details

#assign(val) ⇒ Object



189
190
191
192
193
194
195
196
197
198
199
200
# File 'lib/ruby_smb/dcerpc/epm/epm_twrt.rb', line 189

def assign(val)
  case val
  when String
    self.tower_octet_string.assign(val.bytes)
  when Array
    self.tower_octet_string.assign(val.to_ary)
  when EpmDecodedTowerOctetString
    self.tower_octet_string.assign(val.to_binary_s.bytes)
  else
    super
  end
end