Module: PactBroker::Api::Decorators::Timestamps
- Includes:
- Roar::JSON
- Included in:
- BranchDecorator, BranchVersionDecorator, DeployedVersionDecorator, EmbeddedDeployedVersionDecorator, EmbeddedEnvironmentDecorator, EmbeddedReleasedVersionDecorator, EnvironmentDecorator, LabelDecorator, LatestPactDecorator, PactDecorator, PactVersionDecorator, PacticipantDecorator, ReleasedVersionDecorator, TagDecorator, VersionDecorator, WebhookDecorator
- Defined in:
- lib/pact_broker/api/decorators/timestamps.rb
Instance Method Summary collapse
Instance Method Details
#optional_updated_at ⇒ Object
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 |