Method: PureCloud::Address#initialize

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

#initialize(attributes = {}) ⇒ Address

Returns a new instance of Address.



65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# File 'lib/purecloud/models/address.rb', line 65

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[:'name']
    self.name = attributes[:'name']
  end
  
  if attributes[:'nameRaw']
    self.name_raw = attributes[:'nameRaw']
  end
  
  if attributes[:'addressNormalized']
    self.address_normalized = attributes[:'addressNormalized']
  end
  
  if attributes[:'addressRaw']
    self.address_raw = attributes[:'addressRaw']
  end
  
  if attributes[:'addressDisplayable']
    self.address_displayable = attributes[:'addressDisplayable']
  end
  
end