Sha256: 4a20500130ff99b2e10529fa937e8a1871f6ba185b91be26b6bdba8f7e9dd77b
Contents?: true
Size: 182 Bytes
Versions: 3
Compression:
Stored size: 182 Bytes
Contents
class NameAndNumberKeyFactory < Toy::Identity::AbstractKeyFactory def next_key(object) "#{object.name}-#{object.number}" unless object.name.nil? || object.number.nil? end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
toystore-0.6.1 | spec/support/name_and_number_key_factory.rb |
toystore-0.6 | spec/support/name_and_number_key_factory.rb |
toystore-0.5 | spec/support/name_and_number_key_factory.rb |