Class: SignalWire::REST::Namespaces::CompatNamespace

Inherits:
Object
  • Object
show all
Defined in:
lib/signalwire/rest/namespaces/compat.rb

Overview

Twilio-compatible LAML API namespace.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(http, account_sid) ⇒ CompatNamespace

Returns a new instance of CompatNamespace.



210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
# File 'lib/signalwire/rest/namespaces/compat.rb', line 210

def initialize(http, )
  base = "/api/laml/2010-04-01/Accounts/#{}"

  @accounts       = CompatAccounts.new(http)
  @calls          = CompatCalls.new(http, "#{base}/Calls")
  @messages       = CompatMessages.new(http, "#{base}/Messages")
  @faxes          = CompatFaxes.new(http, "#{base}/Faxes")
  @conferences    = CompatConferences.new(http, "#{base}/Conferences")
  @phone_numbers  = CompatPhoneNumbers.new(http, "#{base}/IncomingPhoneNumbers")
  @applications   = CompatApplications.new(http, "#{base}/Applications")
  @laml_bins      = CompatLamlBins.new(http, "#{base}/LamlBins")
  @queues         = CompatQueues.new(http, "#{base}/Queues")
  @recordings     = CompatRecordings.new(http, "#{base}/Recordings")
  @transcriptions = CompatTranscriptions.new(http, "#{base}/Transcriptions")
  @tokens         = CompatTokens.new(http, "#{base}/tokens")
end

Instance Attribute Details

#accountsObject (readonly)

Returns the value of attribute accounts.



206
207
208
# File 'lib/signalwire/rest/namespaces/compat.rb', line 206

def accounts
  @accounts
end

#applicationsObject (readonly)

Returns the value of attribute applications.



206
207
208
# File 'lib/signalwire/rest/namespaces/compat.rb', line 206

def applications
  @applications
end

#callsObject (readonly)

Returns the value of attribute calls.



206
207
208
# File 'lib/signalwire/rest/namespaces/compat.rb', line 206

def calls
  @calls
end

#conferencesObject (readonly)

Returns the value of attribute conferences.



206
207
208
# File 'lib/signalwire/rest/namespaces/compat.rb', line 206

def conferences
  @conferences
end

#faxesObject (readonly)

Returns the value of attribute faxes.



206
207
208
# File 'lib/signalwire/rest/namespaces/compat.rb', line 206

def faxes
  @faxes
end

#laml_binsObject (readonly)

Returns the value of attribute laml_bins.



206
207
208
# File 'lib/signalwire/rest/namespaces/compat.rb', line 206

def laml_bins
  @laml_bins
end

#messagesObject (readonly)

Returns the value of attribute messages.



206
207
208
# File 'lib/signalwire/rest/namespaces/compat.rb', line 206

def messages
  @messages
end

#phone_numbersObject (readonly)

Returns the value of attribute phone_numbers.



206
207
208
# File 'lib/signalwire/rest/namespaces/compat.rb', line 206

def phone_numbers
  @phone_numbers
end

#queuesObject (readonly)

Returns the value of attribute queues.



206
207
208
# File 'lib/signalwire/rest/namespaces/compat.rb', line 206

def queues
  @queues
end

#recordingsObject (readonly)

Returns the value of attribute recordings.



206
207
208
# File 'lib/signalwire/rest/namespaces/compat.rb', line 206

def recordings
  @recordings
end

#tokensObject (readonly)

Returns the value of attribute tokens.



206
207
208
# File 'lib/signalwire/rest/namespaces/compat.rb', line 206

def tokens
  @tokens
end

#transcriptionsObject (readonly)

Returns the value of attribute transcriptions.



206
207
208
# File 'lib/signalwire/rest/namespaces/compat.rb', line 206

def transcriptions
  @transcriptions
end