Sha256: 3d8304ccc2f0cb0c1777ab57d9e0b2f05960624e2803e9f36969df125cd6e853

Contents?: true

Size: 443 Bytes

Versions: 1

Compression:

Stored size: 443 Bytes

Contents

module Maxwell
  module Agent
    class Host
      include DynamicAttributes

      class Service
        include Work
        def initialize(attrs={})
          @hosts ||= []
        end
      end

      def initialize(attrs={})
        @services ||= []
        @hosts ||= []
      end

      def add_service(service)
        self.services << service
      end

      def add_host(host)
        self.hosts << host
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
maxwell_agent-0.0.5 lib/maxwell/agent/host.rb