Module: Architect4r::Model::Connection::ClassMethods

Defined in:
lib/architect4r/model/connection.rb

Instance Method Summary collapse

Instance Method Details

#connectionObject



16
17
18
19
# File 'lib/architect4r/model/connection.rb', line 16

def connection
  # TODO: apply configuration
  @connection || Server.new
end

#use_server(server) ⇒ Object



12
13
14
# File 'lib/architect4r/model/connection.rb', line 12

def use_server(server)
  @connection = server
end