Sha256: 9c77c4a63ef09ec73696a6c901eab15d66a9954f2506ef0e345bb9d0758c79b0

Contents?: true

Size: 346 Bytes

Versions: 5

Compression:

Stored size: 346 Bytes

Contents

module CortexClient
  module Http
    class Agent
      attr_reader :name, :version

      def initialize(name:, version:)
        @name = name
        @version = version
      end

      def self.list_to_s(agents)
        agents.collect(&:to_s).join(" ")
      end

      def to_s
        "#{name}/#{version}".freeze
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
anmol_2_cortex_client_ruby-0.1.0 lib/cortex_client/http/agent.rb
anmol_cortex_client_ruby-0.1.3 lib/cortex_client/http/agent.rb
anmol_cortex_client_ruby-0.1.2 lib/cortex_client/http/agent.rb
anmol_cortex_client_ruby-0.1.1 lib/cortex_client/http/agent.rb
anmol_cortex_client_ruby-0.1.0 lib/cortex_client/http/agent.rb