ruby-grape/grape-entity

View on GitHub
lib/grape_entity/delegator/openstruct_object.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

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