Class: SignalWire::REST::Namespaces::LogsNamespace

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

Overview

Logs API namespace.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(http) ⇒ LogsNamespace

Returns a new instance of LogsNamespace.



37
38
39
40
41
42
# File 'lib/signalwire/rest/namespaces/logs.rb', line 37

def initialize(http)
  @messages    = MessageLogs.new(http, '/api/messaging/logs')
  @voice       = VoiceLogs.new(http, '/api/voice/logs')
  @fax         = FaxLogs.new(http, '/api/fax/logs')
  @conferences = ConferenceLogs.new(http, '/api/logs/conferences')
end

Instance Attribute Details

#conferencesObject (readonly)

Returns the value of attribute conferences.



35
36
37
# File 'lib/signalwire/rest/namespaces/logs.rb', line 35

def conferences
  @conferences
end

#faxObject (readonly)

Returns the value of attribute fax.



35
36
37
# File 'lib/signalwire/rest/namespaces/logs.rb', line 35

def fax
  @fax
end

#messagesObject (readonly)

Returns the value of attribute messages.



35
36
37
# File 'lib/signalwire/rest/namespaces/logs.rb', line 35

def messages
  @messages
end

#voiceObject (readonly)

Returns the value of attribute voice.



35
36
37
# File 'lib/signalwire/rest/namespaces/logs.rb', line 35

def voice
  @voice
end