Sha256: a114e7893f837065a2112cf24589cd5a04073277fd02ad5a748963ea4970ec77

Contents?: true

Size: 1 KB

Versions: 1

Compression:

Stored size: 1 KB

Contents

module ActiveRecord
  module ObscuredId
    VERSION: String

    class Configuration
      attr_accessor domain: String
      attr_accessor old_domains: [String]

      def initialize: () -> void
    end

    attr_writer self.config: Configuration

    def self.config: (Configuration) -> Configuration
    def self.configure: () { (Configuration) -> void } -> void

    module ClassMethods
      def find_obscured: (obscured_id: String) -> ActiveRecord::Base?
      def find_obscured!: (obscured_id: String) -> ActiveRecord::Base

      private

      def decode_obscured_id: (obscured_id: String) -> String
    end

    def obscured_id: () -> String

    module Base32
      BASE32_ALPHABET: String

      def encode: (input: String) -> String
      def decode: (base32_str: String) -> String
    end

    module Extensions
      module EmailAddress
        def from_obscured_email_address: (obscured_email_address: String) -> ActiveRecord::Base?

        def obscured_email_address: () -> String
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
activerecord-obscuredid-0.2.0 sig/activerecord-obscuredid.rbs