Sha256: f7083d6ed33c42bbe4006146b4dbb2b56b6b1a64f557d842c240422799f5093c
Contents?: true
Size: 554 Bytes
Versions: 66
Compression:
Stored size: 554 Bytes
Contents
require 'roar/json' module PactBroker module Api module Decorators module Timestamps include Roar::JSON property :optional_updated_at, as: :updatedAt, exec_context: :decorator, writeable: false property :createdAt, getter: lambda { |_| created_at.xmlschema }, writeable: false def optional_updated_at if represented.respond_to?(:updated_at) && represented.updated_at != represented.created_at represented.updated_at.xmlschema end end end end end end
Version data entries
66 entries across 66 versions & 1 rubygems