Sha256: bf30155fb101e05a3a064d3e125c18714d28210f07c46c81af4d01a9e4c2261c

Contents?: true

Size: 826 Bytes

Versions: 10

Compression:

Stored size: 826 Bytes

Contents

# typed: true
require 'sorbet-runtime'

require_relative 'extensions'
require "mangadex/utils"

# 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

10 entries across 10 versions & 1 rubygems

Version Path
mangadex-5.10.0 lib/mangadex.rb
mangadex-5.9.0 lib/mangadex.rb
mangadex-5.8.0 lib/mangadex.rb
mangadex-5.7.5.3 lib/mangadex.rb
mangadex-5.7.5.2 lib/mangadex.rb
mangadex-5.7.5.1 lib/mangadex.rb
mangadex-5.7.5 lib/mangadex.rb
mangadex-5.5.8 lib/mangadex.rb
mangadex-5.5.6 lib/mangadex.rb
mangadex-5.4.16 lib/mangadex.rb