Sha256: 02a79ca29c24b73375a103d7e539cef20e04ed0cda26b2701e6118d0df9b45dc

Contents?: true

Size: 210 Bytes

Versions: 2

Compression:

Stored size: 210 Bytes

Contents

# frozen_string_literal: true

module Grape
  class Entity
    module Delegator
      class HashObject < Base
        def delegate(attribute)
          object[attribute]
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
grape-entity-0.7.1 lib/grape_entity/delegator/hash_object.rb
grape-entity-0.7.0 lib/grape_entity/delegator/hash_object.rb