65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
|
# File 'lib/purecloud/models/transfer_request.rb', line 65
def initialize(attributes = {})
return unless attributes.is_a?(Hash)
attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
if attributes[:'userId']
self.user_id = attributes[:'userId']
end
if attributes[:'address']
self.address = attributes[:'address']
end
if attributes[:'userName']
self.user_name = attributes[:'userName']
end
if attributes[:'queueId']
self.queue_id = attributes[:'queueId']
end
if attributes[:'voicemail']
self.voicemail = attributes[:'voicemail']
else
self.voicemail = false
end
end
|