Sha256: 26bd17cff64ec5c994e2986cb20f252fb1889a295d3e56a732d8af4046db5e88

Contents?: true

Size: 300 Bytes

Versions: 16

Compression:

Stored size: 300 Bytes

Contents

class HashWithModel < Attributor::Hash
  keys do
    key :name, String, default: 'Turkey McDucken', description: 'Turducken name', example: Randgen.name
    key :chicken, Chicken
  end
end

class HashWithStrings < Attributor::Hash
  keys do
    key :name, String
    key :something, String
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
attributor-7.1 spec/support/hashes.rb
attributor-7.0 spec/support/hashes.rb
attributor-6.5 spec/support/hashes.rb
attributor-6.4 spec/support/hashes.rb
attributor-6.3 spec/support/hashes.rb
attributor-6.2 spec/support/hashes.rb
attributor-6.1 spec/support/hashes.rb
attributor-6.0 spec/support/hashes.rb
attributor-5.7 spec/support/hashes.rb
attributor-5.6 spec/support/hashes.rb
attributor-5.5 spec/support/hashes.rb
attributor-5.4 spec/support/hashes.rb
attributor-5.3 spec/support/hashes.rb
attributor-5.2.1 spec/support/hashes.rb
attributor-5.2.0 spec/support/hashes.rb
attributor-5.1.0 spec/support/hashes.rb