class TrainPlugins::AliCloud::Transport

Public Instance Methods

connection(_instance_opts = nil) click to toggle source

The options passed to this are undocumented and rarely used.

# File lib/train-alicloud/transport.rb, line 30
def connection(_instance_opts = nil)
  # Typical practice is to cache the connection as an instance variable.
  # Do what makes sense for your platform.
  # @options here is the parsed options that the calling
  # app handed to us at process invocation. See the Connection class
  # for more details.
  @connection ||= TrainPlugins::AliCloud::Connection.new(@options)
end