Module: Shark::Connected::ClassMethods

Defined in:
lib/shark/concerns/connected.rb

Instance Method Summary collapse

Instance Method Details

#connection(rebuild = false, &block) ⇒ Connection

Return/build a connection object

Returns:

  • (Connection)

    The connection to the api server



26
27
28
29
# File 'lib/shark/concerns/connected.rb', line 26

def connection(rebuild = false, &block)
  _build_connection(rebuild, &block)
  @connection
end