Sha256: 18f5c948ae208a03edd9d66ea5d4f6b9f5fc8870edb856b892752da7bee50c4b

Contents?: true

Size: 594 Bytes

Versions: 2

Compression:

Stored size: 594 Bytes

Contents

# frozen_string_literal: true

#
# Copyright (c) 2019-present, Blue Marble Payroll, LLC
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
#

module Airspace
  # This mix-in allows for classes to be composed of a Metadata instance
  module HasMetadata
    extend Forwardable

    attr_reader :metadata

    def_delegators  :metadata,
                    :chunk_count,
                    :chunker,
                    :expires_in_seconds,
                    :page_count,
                    :pages_per_chunk
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
airspace-1.0.1 lib/airspace/has_metadata.rb
airspace-1.0.0 lib/airspace/has_metadata.rb