Sha256: b15bd82344e47adf5f93ec38568511d96fcca8cb95c211447807f1f13907a4e1

Contents?: true

Size: 220 Bytes

Versions: 10

Compression:

Stored size: 220 Bytes

Contents

# frozen_string_literal: true

module Grape
  class Entity
    module Delegator
      class OpenStructObject < Base
        def delegate(attribute)
          object.send attribute
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

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