Method: PureCloud::CreateCallResponse#initialize
- Defined in:
- lib/purecloud/models/create_call_response.rb
#initialize(attributes = {}) ⇒ CreateCallResponse
Returns a new instance of CreateCallResponse.
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
# File 'lib/purecloud/models/create_call_response.rb', line 36 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[:'id'] self.id = attributes[:'id'] end if attributes[:'name'] self.name = attributes[:'name'] end if attributes[:'selfUri'] self.self_uri = attributes[:'selfUri'] end end |