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.13 spec/support/global_id.rb
graphql-1.8.12 spec/support/global_id.rb
graphql-1.9.0.pre1 spec/support/global_id.rb
graphql-1.8.11 spec/support/global_id.rb
graphql-1.8.10 spec/support/global_id.rb
graphql-1.8.9 spec/support/global_id.rb
graphql-1.8.8 spec/support/global_id.rb
graphql-1.8.7 spec/support/global_id.rb