Sha256: 55c443993d23a1074f4690e567a12557dd37d5e3f7f84ed2ad9eb9c2fa92cea2

Contents?: true

Size: 239 Bytes

Versions: 11

Compression:

Stored size: 239 Bytes

Contents

# frozen_string_literal: true

module Grape
  class Entity
    module Exposure
      class DelegatorExposure < Base
        def value(entity, _options)
          entity.delegate_attribute(attribute)
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
grape-entity-1.0.1 lib/grape_entity/exposure/delegator_exposure.rb
grape-entity-1.0.0 lib/grape_entity/exposure/delegator_exposure.rb
grape-entity-0.10.2 lib/grape_entity/exposure/delegator_exposure.rb
grape-entity-0.10.1 lib/grape_entity/exposure/delegator_exposure.rb
grape-entity-0.10.0 lib/grape_entity/exposure/delegator_exposure.rb
grape-entity-0.9.0 lib/grape_entity/exposure/delegator_exposure.rb
grape-entity-0.8.2 lib/grape_entity/exposure/delegator_exposure.rb
grape-entity-0.8.1 lib/grape_entity/exposure/delegator_exposure.rb
grape-entity-0.8.0 lib/grape_entity/exposure/delegator_exposure.rb
grape-entity-0.7.1 lib/grape_entity/exposure/delegator_exposure.rb
grape-entity-0.7.0 lib/grape_entity/exposure/delegator_exposure.rb