Sha256: 09e79e0922a65be489d840ba53b8cff63ccea076e838c8664819d1afdfbe4835

Contents?: true

Size: 275 Bytes

Versions: 3

Compression:

Stored size: 275 Bytes

Contents

module Harbr
  class Container
    include Dddr::Entity
    attr_accessor :name, :host_header, :ip, :port
    queries do
      def find_by_header(host_header)
        all.find { |container| container.host_header.downcase == host_header.downcase }
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
harbr-0.0.31 lib/harbr/container.rb
harbr-0.0.29 lib/harbr/container.rb
harbr-0.0.28 lib/harbr/container.rb