Class: Grape::Entity::Exposure::DelegatorExposure
- Defined in:
- lib/grape_entity/exposure/delegator_exposure.rb
Instance Attribute Summary
Attributes inherited from Base
#attribute, #conditions, #documentation, #for_merge, #is_safe, #override
Instance Method Summary collapse
Methods inherited from Base
#==, #attr_path, #conditional?, #conditions_met?, #deep_complex_nesting?, #dup, #dup_args, #initialize, #key, #nesting?, new, #override?, #serializable_value, #setup, #should_expose?, #should_return_key?, #valid?, #valid_value, #with_attr_path
Constructor Details
This class inherits a constructor from Grape::Entity::Exposure::Base
Instance Method Details
#value(entity, _options) ⇒ Object
7 8 9 |
# File 'lib/grape_entity/exposure/delegator_exposure.rb', line 7 def value(entity, ) entity.delegate_attribute(attribute) end |