Module: MetricsApi::V3::Endpoints::Helpers

Included in:
Global, Root
Defined in:
app/services/metrics_api/v3/endpoints/helpers.rb

Instance Method Summary collapse

Instance Method Details

#parse_date_param(date_param) ⇒ Object



6
7
8
9
10
# File 'app/services/metrics_api/v3/endpoints/helpers.rb', line 6

def parse_date_param(date_param)
  return nil unless date_param.present?

  Date.parse(date_param)
end