Sha256: 55829e3e8c54a449cfd513db6d949a5deefbf55a22c46fbf01a2969320fc8d7f

Contents?: true

Size: 1.63 KB

Versions: 5

Compression:

Stored size: 1.63 KB

Contents

# frozen_string_literal: true

require 'lhc'

module LHS
  autoload :Configuration,
    'lhs/concerns/configuration'
  autoload :AutoloadRecords,
    'lhs/concerns/autoload_records'
  autoload :Collection,
    'lhs/collection'
  autoload :Complex,
    'lhs/complex'
  autoload :Config,
    'lhs/config'
  autoload :Data,
    'lhs/data'
  autoload :Endpoint,
    'lhs/endpoint'
  autoload :Inspect,
    'lhs/concerns/inspect'
  autoload :IsHref,
    'lhs/concerns/is_href'
  autoload :Item,
    'lhs/item'
  autoload :OptionBlocks,
    'lhs/concerns/option_blocks'
  autoload :Pagination,
    'lhs/pagination/base'
  module Pagination
    autoload :Offset,
      'lhs/pagination/offset'
    autoload :Page,
      'lhs/pagination/page'
    autoload :Start,
      'lhs/pagination/start'
    autoload :Link,
      'lhs/pagination/link'
  end
  autoload :Problems,
    'lhs/problems/base'
  module Problems
    autoload :Base,
      'lhs/problems/base'
    autoload :Errors,
      'lhs/problems/errors'
    autoload :Nested,
      'lhs/problems/nested/base'
    module Nested
      autoload :Base,
      'lhs/problems/nested/base'
      autoload :Errors,
      'lhs/problems/nested/errors'
      autoload :Warnings,
      'lhs/problems/nested/warnings'
    end
    autoload :Warnings,
      'lhs/problems/warnings'
  end
  autoload :Proxy,
    'lhs/proxy'
  autoload :Record,
    'lhs/record'
  autoload :Unprocessable,
    'lhs/unprocessable'

  include Configuration
  include AutoloadRecords if defined?(Rails)
  include OptionBlocks

  require 'lhs/record' # as lhs records in an application are directly inheriting it

  require 'lhs/railtie' if defined?(Rails)
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
lhs-19.9.0 lib/lhs.rb
lhs-19.8.2 lib/lhs.rb
lhs-19.8.1 lib/lhs.rb
lhs-19.8.0 lib/lhs.rb
lhs-19.7.0 lib/lhs.rb