Method: PureCloud::FaxSendRequest#initialize

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

#initialize(attributes = {}) ⇒ FaxSendRequest

Returns a new instance of FaxSendRequest.



88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
# File 'lib/purecloud/models/fax_send_request.rb', line 88

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[:'addresses']
    if (value = attributes[:'addresses']).is_a?(Array)
      self.addresses = value
    end
  end
  
  if attributes[:'documentId']
    self.document_id = attributes[:'documentId']
  end
  
  if attributes[:'contentType']
    self.content_type = attributes[:'contentType']
  end
  
  if attributes[:'workspace']
    self.workspace = attributes[:'workspace']
  end
  
  if attributes[:'coverSheet']
    self.cover_sheet = attributes[:'coverSheet']
  end
  
  if attributes[:'timeZoneOffsetMinutes']
    self.time_zone_offset_minutes = attributes[:'timeZoneOffsetMinutes']
  end
  
  if attributes[:'selfUri']
    self.self_uri = attributes[:'selfUri']
  end
  
end