Sha256: 4ab4b688e56aa5b8acce861b2143727787df4b7c8515dfe7c00004a8ce23ed77

Contents?: true

Size: 465 Bytes

Versions: 2

Compression:

Stored size: 465 Bytes

Contents

# frozen_string_literal: true

require_relative 'inboxable/version'
require_relative 'inboxable/configuration'
require_relative 'inboxable/polling_receiver_worker'

module Inboxable
  class Error < StandardError; end

  class << self
    attr_accessor :configuration

    def inbox_model
      @configuration.inbox_model.constantize
    end

    def configure
      @configuration ||= Configuration.new
      yield(@configuration) if block_given?
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
inboxable-0.1.2 lib/inboxable.rb
inboxable-0.1.1 lib/inboxable.rb