Class: ReviewEntity
- Inherits:
-
ApplicationEntity
- Object
- Dry::Struct
- ApplicationEntity
- ReviewEntity
- Defined in:
- app/entities/review_entity.rb
Constant Summary
Constants inherited from ApplicationEntity
ApplicationEntity::DEFAULT_CONTEXT
Instance Method Summary collapse
Methods inherited from ApplicationEntity
#dump, extra, extras, #to_h, #to_json, type
Instance Method Details
#dump_attributes ⇒ Object
13 14 15 16 17 18 |
# File 'app/entities/review_entity.rb', line 13 def dump_attributes attributes.except(:author, :publisher).merge( author: , publisher: safe_publisher ) end |