Class: Adhearsion::Configuration::TelephonyPlatformConfiguration

Inherits:
AbstractConfiguration show all
Defined in:
lib/adhearsion/initializer/configuration.rb

Overview

Abstract superclass for AsteriskConfiguration and FreeSwitchConfiguration.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods included from ConfigurationEntryPoint

#add_configuration_for

Constructor Details

#initialize(overrides = {}) ⇒ TelephonyPlatformConfiguration

Returns a new instance of TelephonyPlatformConfiguration.



131
132
133
134
135
# File 'lib/adhearsion/initializer/configuration.rb', line 131

def initialize(overrides = {})
  @listening_port = self.class.default_listening_port
  @listening_host = self.class.default_listening_host
  super
end

Instance Attribute Details

#listening_hostObject

Returns the value of attribute listening_host.



119
120
121
# File 'lib/adhearsion/initializer/configuration.rb', line 119

def listening_host
  @listening_host
end

#listening_portObject

Returns the value of attribute listening_port.



118
119
120
# File 'lib/adhearsion/initializer/configuration.rb', line 118

def listening_port
  @listening_port
end

Class Method Details

.default_listening_hostObject



126
127
128
# File 'lib/adhearsion/initializer/configuration.rb', line 126

def default_listening_host
  '0.0.0.0'
end

.default_listening_portObject



122
123
124
# File 'lib/adhearsion/initializer/configuration.rb', line 122

def default_listening_port
  abstract_method!
end