class Grape::Entity::Delegator::HashObject

Public Instance Methods

delegate(attribute, hash_access: :to_sym) click to toggle source
# File lib/grape_entity/delegator/hash_object.rb, line 7
def delegate(attribute, hash_access: :to_sym)
  object[attribute.send(hash_access)]
end