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.



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

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

Instance Attribute Details

#eventsObject

Returns the value of attribute events.



148
149
150
# File 'lib/adhearsion/initializer/configuration.rb', line 148

def events
  @events
end

#hostObject

Returns the value of attribute host.



148
149
150
# File 'lib/adhearsion/initializer/configuration.rb', line 148

def host
  @host
end

#passwordObject

Returns the value of attribute password.



148
149
150
# File 'lib/adhearsion/initializer/configuration.rb', line 148

def password
  @password
end

#portObject

Returns the value of attribute port.



148
149
150
# File 'lib/adhearsion/initializer/configuration.rb', line 148

def port
  @port
end

#usernameObject

Returns the value of attribute username.



148
149
150
# File 'lib/adhearsion/initializer/configuration.rb', line 148

def username
  @username
end

Class Method Details

.default_eventsObject



155
156
157
# File 'lib/adhearsion/initializer/configuration.rb', line 155

def default_events
  false
end

.default_hostObject



159
160
161
# File 'lib/adhearsion/initializer/configuration.rb', line 159

def default_host
  'localhost'
end

.default_portObject



151
152
153
# File 'lib/adhearsion/initializer/configuration.rb', line 151

def default_port
  5038
end