Sha256: b5f42fde28107e853600084d8e2537c272654aa18ed42c1af5a64b7e1790b274

Contents?: true

Size: 336 Bytes

Versions: 28

Compression:

Stored size: 336 Bytes

Contents

# frozen_string_literal: true

if defined?(GlobalID)
  GlobalID.app = "graphql-ruby-test"

  class GlobalIDUser
    include GlobalID::Identification

    attr_reader :id

    def initialize(id)
      @id = id
    end

    def self.find(id)
      GlobalIDUser.new(id)
    end

    def ==(that)
      self.id == that.id
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
graphql-1.8.18 spec/support/global_id.rb
graphql-1.9.11 spec/support/global_id.rb
graphql-1.9.10 spec/support/global_id.rb
graphql-1.9.9 spec/support/global_id.rb
graphql-1.9.8 spec/support/global_id.rb
graphql-1.9.7 spec/support/global_id.rb
graphql-1.9.6 spec/support/global_id.rb
graphql-1.9.5 spec/support/global_id.rb
graphql-1.9.4 spec/support/global_id.rb
graphql-1.9.3 spec/support/global_id.rb
graphql-1.9.2 spec/support/global_id.rb
graphql-1.8.17 spec/support/global_id.rb
graphql-1.8.16 spec/support/global_id.rb
graphql-1.9.1 spec/support/global_id.rb
graphql-1.9.0 spec/support/global_id.rb
graphql-1.8.15 spec/support/global_id.rb
graphql-1.9.0.pre4 spec/support/global_id.rb
graphql-1.8.14 spec/support/global_id.rb
graphql-1.9.0.pre3 spec/support/global_id.rb
graphql-1.9.0.pre2 spec/support/global_id.rb