Sha256: 4d972e4354d8cca8caf8ca57e584d0074116c5584d2e9f7cf0b8c5b118c66419
Contents?: true
Size: 496 Bytes
Versions: 9
Compression:
Stored size: 496 Bytes
Contents
Cheese = Struct.new(:id, :flavor, :fat_content, :source) CHEESES = { 1 => Cheese.new(1, "Brie", 0.19, 1), 2 => Cheese.new(2, "Gouda", 0.3, 1), 3 => Cheese.new(3, "Manchego", 0.065, "SHEEP") } Milk = Struct.new(:id, :fatContent, :source, :flavors) MILKS = { 1 => Milk.new(1, 0.04, 1, ["Natural", "Chocolate", "Strawberry"]), } DAIRY = OpenStruct.new( id: 1, cheese: CHEESES[1], milks: [MILKS[1]] ) COW = OpenStruct.new( id: 1, name: 'Billy', last_produced_dairy: MILKS[1] )
Version data entries
9 entries across 9 versions & 1 rubygems