Sha256: 06697a8462d703a476e77db8104cb2eefce68d77a5accdf954d02fec32109288

Contents?: true

Size: 826 Bytes

Versions: 8

Compression:

Stored size: 826 Bytes

Contents

# typed: true
require 'sorbet-runtime'

require 'active_support'
require_relative 'extensions'

# The insides of the gem
require "mangadex/version"
require "mangadex/internal"

# Types that represent all of the resources (ie: objects)
require "mangadex/types"

# API, to interact with Mangadex
require "mangadex/api"

# Persist strategies
require "mangadex/storage"

require_relative "config"
require_relative "errors"

# Namespace for classes and modules for this gem.
# @since 5.3.0

module Mangadex
  class << self
    def configuration
      @configuration ||= Config.new
    end

    def context
      @context ||= Internal::Context.new
    end

    def configure(&block)
      yield(configuration)
    end

    def storage
      configuration.storage
    end

    def api_version
      context.version
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
mangadex-5.4.11.3 lib/mangadex.rb
mangadex-5.4.11.2 lib/mangadex.rb
mangadex-5.4.11.1 lib/mangadex.rb
mangadex-5.4.11 lib/mangadex.rb
mangadex-5.4.9 lib/mangadex.rb
mangadex-5.3.3.4 lib/mangadex.rb
mangadex-5.3.3.3 lib/mangadex.rb
mangadex-5.3.3.2 lib/mangadex.rb