80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
|
# File 'lib/purecloud/models/chat_message.rb', line 80
def initialize(attributes = {})
return unless attributes.is_a?(Hash)
attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
if attributes[:'body']
self.body = attributes[:'body']
end
if attributes[:'id']
self.id = attributes[:'id']
end
if attributes[:'to']
self.to = attributes[:'to']
end
if attributes[:'from']
self.from = attributes[:'from']
end
if attributes[:'utc']
self.utc = attributes[:'utc']
end
if attributes[:'chat']
self.chat = attributes[:'chat']
end
if attributes[:'message']
self.message = attributes[:'message']
end
if attributes[:'type']
self.type = attributes[:'type']
end
if attributes[:'user']
self.user = attributes[:'user']
end
end
|