Sha256: c7f234bd7332b14250f9fd227daff171c272591e1e8d15cd30a67f0aea1443d6
Contents?: true
Size: 412 Bytes
Versions: 3
Compression:
Stored size: 412 Bytes
Contents
module Harbr class Container include Dddr::Entity attr_accessor :name, :host_header, :ip, :port, :host_header_aliases 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 end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
harbr-0.1.75 | lib/harbr/container.rb |
harbr-0.1.74 | lib/harbr/container.rb |
harbr-0.1.73 | lib/harbr/container.rb |