Sha256: 9c08bbc91cb45230ca19008bd30f3846503d752cef82a5deb1986b4e4e14bbb7

Contents?: true

Size: 289 Bytes

Versions: 7

Compression:

Stored size: 289 Bytes

Contents

# frozen_string_literal: true

module Grape
  class Entity
    module Delegator
      class Base
        attr_reader :object

        def initialize(object)
          @object = object
        end

        def delegatable?(_attribute)
          true
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
grape-entity-0.10.0 lib/grape_entity/delegator/base.rb
grape-entity-0.9.0 lib/grape_entity/delegator/base.rb
grape-entity-0.8.2 lib/grape_entity/delegator/base.rb
grape-entity-0.8.1 lib/grape_entity/delegator/base.rb
grape-entity-0.8.0 lib/grape_entity/delegator/base.rb
grape-entity-0.7.1 lib/grape_entity/delegator/base.rb
grape-entity-0.7.0 lib/grape_entity/delegator/base.rb