Module: PactBroker::Api::Decorators::Timestamps

Instance Method Summary collapse

Instance Method Details

#optional_updated_atObject



13
14
15
16
17
# File 'lib/pact_broker/api/decorators/timestamps.rb', line 13

def optional_updated_at
  if represented.respond_to?(:updated_at) && represented.updated_at != represented.created_at
    FormatDateTime.call(represented.updated_at)
  end
end