HabitatMap/AirCasting

View on GitHub
app/serializers/threshold_set_serializer.rb

Summary

Maintainability
A
0 mins
Test Coverage
class ThresholdSetSerializer
  def call(threshold_set)
    [
      threshold_set.threshold_very_low.to_i.to_s,
      threshold_set.threshold_low.to_i.to_s,
      threshold_set.threshold_medium.to_i.to_s,
      threshold_set.threshold_high.to_i.to_s,
      threshold_set.threshold_very_high.to_i.to_s,
    ]
  end
end