Class: Adhearsion::Configuration::AsteriskConfiguration::AMIConfiguration

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods included from ConfigurationEntryPoint

#add_configuration_for

Constructor Details

#initialize(overrides = {}) ⇒ AMIConfiguration

Returns a new instance of AMIConfiguration.



187
188
189
190
191
192
193
# File 'lib/adhearsion/initializer/configuration.rb', line 187

def initialize(overrides = {})
  self.host           = self.class.default_host
  self.port           = self.class.default_port
  self.events         = self.class.default_events
  self.auto_reconnect = self.class.default_auto_reconnect
  super
end

Instance Attribute Details

#auto_reconnectObject

Returns the value of attribute auto_reconnect.



167
168
169
# File 'lib/adhearsion/initializer/configuration.rb', line 167

def auto_reconnect
  @auto_reconnect
end

#eventsObject

Returns the value of attribute events.



167
168
169
# File 'lib/adhearsion/initializer/configuration.rb', line 167

def events
  @events
end

#hostObject

Returns the value of attribute host.



167
168
169
# File 'lib/adhearsion/initializer/configuration.rb', line 167

def host
  @host
end

#passwordObject

Returns the value of attribute password.



167
168
169
# File 'lib/adhearsion/initializer/configuration.rb', line 167

def password
  @password
end

#portObject

Returns the value of attribute port.



167
168
169
# File 'lib/adhearsion/initializer/configuration.rb', line 167

def port
  @port
end

#usernameObject

Returns the value of attribute username.



167
168
169
# File 'lib/adhearsion/initializer/configuration.rb', line 167

def username
  @username
end

Class Method Details

.default_auto_reconnectObject



182
183
184
# File 'lib/adhearsion/initializer/configuration.rb', line 182

def default_auto_reconnect
  true
end

.default_eventsObject



174
175
176
# File 'lib/adhearsion/initializer/configuration.rb', line 174

def default_events
  false
end

.default_hostObject



178
179
180
# File 'lib/adhearsion/initializer/configuration.rb', line 178

def default_host
  'localhost'
end

.default_portObject



170
171
172
# File 'lib/adhearsion/initializer/configuration.rb', line 170

def default_port
  5038
end