Sha256: 347c90d16e8fd6819ff97126aed0605c70f6145d203be19615be9cb7ebee85db

Contents?: true

Size: 561 Bytes

Versions: 5

Compression:

Stored size: 561 Bytes

Contents

Cheese = Struct.new(:id, :flavor, :origin, :fat_content, :source)
CHEESES = {
  1 => Cheese.new(1, "Brie", "France", 0.19, 1),
  2 => Cheese.new(2, "Gouda", "Netherlands", 0.3, 1),
  3 => Cheese.new(3, "Manchego", "Spain", 0.065, "SHEEP")
}

Milk = Struct.new(:id, :fatContent, :origin, :source, :flavors)
MILKS = {
  1 => Milk.new(1, 0.04, "Antiquity", 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

5 entries across 5 versions & 1 rubygems

Version Path
graphql-0.12.1 spec/support/dairy_data.rb
graphql-0.12.0 spec/support/dairy_data.rb
graphql-0.11.1 spec/support/dairy_data.rb
graphql-0.11.0 spec/support/dairy_data.rb
graphql-0.10.9 spec/support/dairy_data.rb