Method: PureCloud::Wrapup#initialize
- Defined in:
- lib/purecloudplatformclientv2/models/wrapup.rb
#initialize(attributes = {}) ⇒ Wrapup
Initializes the object
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 95 96 97 98 99 100 101 102 103 104 105 106 |
# File 'lib/purecloudplatformclientv2/models/wrapup.rb', line 70 def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'code') self.code = attributes[:'code'] end if attributes.has_key?(:'name') self.name = attributes[:'name'] end if attributes.has_key?(:'notes') self.notes = attributes[:'notes'] end if attributes.has_key?(:'tags') if (value = attributes[:'tags']).is_a?(Array) self. = value end end if attributes.has_key?(:'durationSeconds') self.duration_seconds = attributes[:'durationSeconds'] end if attributes.has_key?(:'endTime') self.end_time = attributes[:'endTime'] end if attributes.has_key?(:'provisional') self.provisional = attributes[:'provisional'] end end |