Sha256: ad78c5813d707942e869c730aadd3a58447140ad9c0f6929b367794f2c4f8f40

Contents?: true

Size: 316 Bytes

Versions: 8

Compression:

Stored size: 316 Bytes

Contents

module Stackify
  class TransportSelector

    attr_reader :transport

    def initialize type
      case type
      when Stackify::DEFAULT
        @transport = Stackify::LogsSender.new
      when Stackify::UNIX_SOCKET, Stackify::AGENT_HTTP
        @transport = Stackify::AgentClient.new
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
stackify-api-ruby-2.1.0 lib/stackify/transport_selector.rb
stackify-api-ruby-2.1.0.beta1 lib/stackify/transport_selector.rb
stackify-api-ruby-2.0.0 lib/stackify/transport_selector.rb
stackify-api-ruby-1.3.0.beta1 lib/stackify/transport_selector.rb
stackify-api-ruby-1.2.10 lib/stackify/transport_selector.rb
stackify-api-ruby-1.2.9 lib/stackify/transport_selector.rb
stackify-api-ruby-1.2.7 lib/stackify/transport_selector.rb
stackify-api-ruby-1.2.4 lib/stackify/transport_selector.rb