Method: PureCloud::CreateCallbackResponse#initialize
- Defined in:
- lib/purecloud/models/create_callback_response.rb
#initialize(attributes = {}) ⇒ CreateCallbackResponse
Returns a new instance of CreateCallbackResponse.
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
# File 'lib/purecloud/models/create_callback_response.rb', line 47 def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo} if attributes[:'conversation'] self.conversation = attributes[:'conversation'] end if attributes[:'callbackIdentifiers'] if (value = attributes[:'callbackIdentifiers']).is_a?(Array) self.callback_identifiers = value end end end |