Sha256: e961a70d6f40529d06942703abc6668d2a61b2beda87166350d14d1c9ee7c3f5
Contents?: true
Size: 510 Bytes
Versions: 4
Compression:
Stored size: 510 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 def find_by_name(name) all.find { |container| container.name.downcase == name.downcase } end def get_by_name(name) all.select { |container| container.name.downcase.include? name.downcase } end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
harbr-0.1.80 | lib/harbr/container.rb |
harbr-0.1.79 | lib/harbr/container.rb |
harbr-0.1.78 | lib/harbr/container.rb |
harbr-0.1.77 | lib/harbr/container.rb |