class Citrus::Components::Connection

Connection

Constants

DELEGATED_METHODS

Public Class Methods

new(app, args={}) click to toggle source

Initialize the component

@param [Object] app @param [Hash] args

# File lib/citrus/components/connection.rb, line 31
def initialize app, args={}
  @app = app
  @service = Common::Service::ConnectionService.new app
end

Public Instance Methods

method_missing(name, *args) click to toggle source

Proxy for connection service

@param [String] name

Calls superclass method
# File lib/citrus/components/connection.rb, line 39
def method_missing name, *args
  if DELEGATED_METHODS.include? name
    @service.send name, *args
  else
    super
  end
end