Module: SipgateIo

Defined in:
lib/sipgate_io.rb,
lib/sipgate_io/dtmf.rb,
lib/sipgate_io/answer.rb,
lib/sipgate_io/engine.rb,
lib/sipgate_io/hangup.rb,
lib/sipgate_io/version.rb,
lib/sipgate_io/new_call.rb,
lib/sipgate_io/xml_response.rb,
lib/sipgate_io/configuration.rb,
lib/sipgate_io/event_processor.rb,
lib/sipgate_io/route_extension.rb,
app/helpers/sipgate_io/events_helper.rb,
app/helpers/sipgate_io/application_helper.rb,
app/controllers/sipgate_io/events_controller.rb,
app/controllers/sipgate_io/application_controller.rb

Defined Under Namespace

Modules: ApplicationHelper, EventProcessor, EventsHelper, RouteExtensions Classes: Answer, ApplicationController, Configuration, Dtmf, Engine, EventsController, Hangup, NewCall, XmlResponse

Constant Summary collapse

VERSION =
"0.3.4"
@@configuration =
nil

Class Method Summary collapse

Class Method Details

.configurationObject



14
15
16
# File 'lib/sipgate_io/configuration.rb', line 14

def self.configuration
  @@configuration || configure
end

.configureObject



4
5
6
7
8
9
10
11
12
# File 'lib/sipgate_io/configuration.rb', line 4

def self.configure
  @@configuration = Configuration.new

  if block_given?
    yield configuration
  end

  configuration
end