class Comet::LocalDestinationLocation
def from_hash(obj)
-
obj
(Hash
) -- The complete object as a Ruby hash
def from_hash(obj) raise TypeError, "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash obj.each do |k, v| case k when 'LocalcopyPath' raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String @localcopy_path = v when 'LocalcopyWinSMBUsername' raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String @localcopy_win_smbusername = v when 'LocalcopyWinSMBPassword' raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String @localcopy_win_smbpassword = v when 'LocalcopyWinSMBPasswordFormat' raise TypeError, "'v' expected Numeric, got #{v.class}" unless v.is_a? Numeric @localcopy_win_smbpassword_format = v else @unknown_json_fields[k] = v end end end