Class: Ci::DailyBuildGroupReportResultSerializer

Inherits:
BaseSerializer show all
Defined in:
app/serializers/ci/daily_build_group_report_result_serializer.rb

Instance Attribute Summary

Attributes inherited from BaseSerializer

#params

Instance Method Summary collapse

Methods inherited from BaseSerializer

entity, #initialize

Constructor Details

This class inherits a constructor from BaseSerializer

Instance Method Details

#represent(resource, opts = {}) ⇒ Object


7
8
9
10
11
12
13
14
# File 'app/serializers/ci/daily_build_group_report_result_serializer.rb', line 7

def represent(resource, opts = {})
  group(resource).map do |group_name, data|
    {
      group_name: group_name,
      data: super(data, opts)
    }
  end
end