Sha256: f2aa7dac5adf0a610f8fc55a57c09d053c360626f030498e46b5824137c614b2

Contents?: true

Size: 487 Bytes

Versions: 12

Compression:

Stored size: 487 Bytes

Contents

# frozen_string_literal: true

require 'active_support'
require 'active_support/core_ext'

class DHS::Record

  # A provider can define options used for that specific provider
  module Provider
    extend ActiveSupport::Concern

    included do
      class_attribute :provider_options unless defined? provider_options
      self.provider_options = nil
    end

    module ClassMethods
      def provider(options = nil)
        self.provider_options = options
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
dhs-1.6.0 lib/dhs/concerns/record/provider.rb
dhs-1.5.0 lib/dhs/concerns/record/provider.rb
dhs-1.4.2 lib/dhs/concerns/record/provider.rb
dhs-1.4.1 lib/dhs/concerns/record/provider.rb
dhs-1.4.0 lib/dhs/concerns/record/provider.rb
dhs-1.3.0 lib/dhs/concerns/record/provider.rb
dhs-1.2.0 lib/dhs/concerns/record/provider.rb
dhs-1.1.0 lib/dhs/concerns/record/provider.rb
dhs-1.0.3 lib/dhs/concerns/record/provider.rb
dhs-1.0.2 lib/dhs/concerns/record/provider.rb
dhs-1.0.1 lib/dhs/concerns/record/provider.rb
dhs-1.0.0 lib/dhs/concerns/record/provider.rb