Class: ROM::HTTP::Dataset::ResponseTransformers::Schemaless
- Inherits:
-
Object
- Object
- ROM::HTTP::Dataset::ResponseTransformers::Schemaless
- Defined in:
- lib/rom/http/dataset/response_transformers/schemaless.rb
Instance Method Summary collapse
Instance Method Details
#call(response, dataset) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/rom/http/dataset/response_transformers/schemaless.rb', line 8 def call(response, dataset) if dataset.projections.empty? response else t(:map_array, t(:accept_keys, dataset.projections)).call(response) end end |