Sha256: 801c7b49c01715845d016cee022f560b8c9012b37afd9069ba46559264920b90

Contents?: true

Size: 405 Bytes

Versions: 1

Compression:

Stored size: 405 Bytes

Contents

module Harbr
  class Container
    include Dddr::Entity

    def initialize
      @hosts = []
      @ports = []
    end

    attr_accessor :name, :ip
    
    attr_writer :hosts
    attr_reader :hosts

    attr_writer :ports
    attr_reader :ports

    queries do
      def find_by_name(name)
        all.find { |container| container.name.to_s.downcase == name.to_s.downcase }
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
harbr-2.8.1 lib/harbr/container.rb