Sha256: 5e7604d8274dd23cbf58ec87e2ad1c3557005ca9db42fd3084b54409cc3b685f

Contents?: true

Size: 637 Bytes

Versions: 89

Compression:

Stored size: 637 Bytes

Contents

# frozen_string_literal: true
require 'platform_sdk/id_mapper/client'
require 'platform_sdk/id_mapper/models'
require 'platform_sdk/id_mapper/constants'

module PlatformSdk
  module IdMapper
    class Error < StandardError; end

    class TokenNotSet < Error; end

    class DomainNotSet < Error; end

    class PairNotFoundError < Error; end

    def self.token
      raise TokenNotSet if @token.nil?

      @token
    end

    def self.token=(token)
      @token = token
    end

    def self.domain
      raise DomainNotSet if @domain.nil?

      @domain
    end

    def self.domain=(domain)
      @domain = domain
    end
  end
end

Version data entries

89 entries across 89 versions & 1 rubygems

Version Path
strongmind-platform-sdk-3.22.1 lib/platform_sdk/id_mapper.rb
strongmind-platform-sdk-3.22.0 lib/platform_sdk/id_mapper.rb
strongmind-platform-sdk-3.21.8 lib/platform_sdk/id_mapper.rb
strongmind-platform-sdk-3.21.7 lib/platform_sdk/id_mapper.rb
strongmind-platform-sdk-3.21.6 lib/platform_sdk/id_mapper.rb
strongmind-platform-sdk-3.21.5 lib/platform_sdk/id_mapper.rb
strongmind-platform-sdk-3.21.4 lib/platform_sdk/id_mapper.rb
strongmind-platform-sdk-3.21.3 lib/platform_sdk/id_mapper.rb
strongmind-platform-sdk-3.21.2 lib/platform_sdk/id_mapper.rb
strongmind-platform-sdk-3.21.1 lib/platform_sdk/id_mapper.rb
strongmind-platform-sdk-3.21.0 lib/platform_sdk/id_mapper.rb
strongmind-platform-sdk-3.20.3 lib/platform_sdk/id_mapper.rb
strongmind-platform-sdk-3.20.2 lib/platform_sdk/id_mapper.rb
strongmind-platform-sdk-3.20.1 lib/platform_sdk/id_mapper.rb
strongmind-platform-sdk-3.20.0 lib/platform_sdk/id_mapper.rb
strongmind-platform-sdk-3.19.40 lib/platform_sdk/id_mapper.rb
strongmind-platform-sdk-3.19.39 lib/platform_sdk/id_mapper.rb
strongmind-platform-sdk-3.19.38 lib/platform_sdk/id_mapper.rb
strongmind-platform-sdk-3.19.37 lib/platform_sdk/id_mapper.rb
strongmind-platform-sdk-3.19.36 lib/platform_sdk/id_mapper.rb