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

Includes:
Roar::JSON
Included in:
LabelDecorator, LatestPactDecorator, PactDecorator, PactVersionDecorator, PacticipantDecorator, TagDecorator, VersionDecorator, WebhookDecorator
Defined in:
lib/pact_broker/api/decorators/timestamps.rb

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