Sha256: eb48260de45e6603cab31dec233c152acad57b6fd2bb6616d53338fb3c1aaa22
Contents?: true
Size: 323 Bytes
Versions: 1
Compression:
Stored size: 323 Bytes
Contents
module Kamerling class Client < UUIDEntity attribute :addr, Addr attribute :busy, Boolean, default: false def self.from_h hash super.tap do |client| client.addr = Addr[hash[:host], hash[:port], hash[:prot]] end end def to_h super.reject { |key, _| key == :addr }.merge addr.to_h end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kamerling-0.0.2 | lib/kamerling/client.rb |