Sha256: 0d8684d8a5628c1ddf3ec439288040e38e3fba27bea96ffaafe7e5308810e544
Contents?: true
Size: 539 Bytes
Versions: 3
Compression:
Stored size: 539 Bytes
Contents
require 'roar/representer/json' module PactBroker module Api module Decorators module Timestamps include Roar::Representer::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.updated_at != represented.created_at represented.updated_at.xmlschema end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems