Sha256: 2db069ee9a52cc0769c5ab38fd4a3e4b74c6b678b14154eaf9b14709107c10a5

Contents?: true

Size: 666 Bytes

Versions: 22

Compression:

Stored size: 666 Bytes

Contents

# frozen_string_literal: true
require 'ostruct'
module Dummy
  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]
  )
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
graphql-1.5.15 spec/support/dummy/data.rb
graphql-1.6.2 spec/support/dummy/data.rb
graphql-1.6.1 spec/support/dummy/data.rb
graphql-1.6.0 spec/support/dummy/data.rb
graphql-1.5.14 spec/support/dummy/data.rb
graphql-1.5.13 spec/support/dummy/data.rb
graphql-1.5.7.1 spec/support/dummy/data.rb
graphql-1.5.12 spec/support/dummy/data.rb
graphql-1.5.11 spec/support/dummy/data.rb
graphql-1.5.10 spec/support/dummy/data.rb
graphql-1.5.9 spec/support/dummy/data.rb
graphql-1.5.8 spec/support/dummy/data.rb
graphql-1.5.7 spec/support/dummy/data.rb
graphql-1.5.6 spec/support/dummy/data.rb
graphql-1.5.5 spec/support/dummy/data.rb
graphql-1.5.4 spec/support/dummy/data.rb
graphql-1.5.3 spec/support/dummy/data.rb
graphql-1.4.5 spec/support/dummy/data.rb
graphql-1.4.4 spec/support/dummy/data.rb
graphql-1.4.3 spec/support/dummy/data.rb