Method: Bandwidth::BandwidthMessage#initialize

Defined in:
lib/bandwidth/messaging_lib/messaging/models/bandwidth_message.rb

#initialize(id = nil, owner = nil, application_id = nil, time = nil, segment_count = nil, direction = nil, to = nil, from = nil, media = nil, text = nil, tag = nil, priority = nil, expiration = nil) ⇒ BandwidthMessage

Returns a new instance of BandwidthMessage.



111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
# File 'lib/bandwidth/messaging_lib/messaging/models/bandwidth_message.rb', line 111

def initialize(id = nil,
               owner = nil,
               application_id = nil,
               time = nil,
               segment_count = nil,
               direction = nil,
               to = nil,
               from = nil,
               media = nil,
               text = nil,
               tag = nil,
               priority = nil,
               expiration = nil)
  @id = id unless id == SKIP
  @owner = owner unless owner == SKIP
  @application_id = application_id unless application_id == SKIP
  @time = time unless time == SKIP
  @segment_count = segment_count unless segment_count == SKIP
  @direction = direction unless direction == SKIP
  @to = to unless to == SKIP
  @from = from unless from == SKIP
  @media = media unless media == SKIP
  @text = text unless text == SKIP
  @tag = tag unless tag == SKIP
  @priority = priority unless priority == SKIP
  @expiration = expiration unless expiration == SKIP
end