Method: PureCloud::ResponseText#initialize

Defined in:
lib/purecloud/models/response_text.rb

#initialize(attributes = {}) ⇒ ResponseText

Returns a new instance of ResponseText.



48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# File 'lib/purecloud/models/response_text.rb', line 48

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[:'content']
    self.content = attributes[:'content']
  end
  
  if attributes[:'contentType']
    self.content_type = attributes[:'contentType']
  end
  
end