Sha256: 36961f77a4879251ff1a4e81eb6b155498161160b73631a5aa09f64d660f5069
Contents?: true
Size: 570 Bytes
Versions: 5
Compression:
Stored size: 570 Bytes
Contents
require 'ostruct' module PactBroker module Api module Decorators class RepresentablePact attr_reader :consumer, :provider, :consumer_version, :created_at, :updated_at def initialize pact @consumer_version = pact.consumer_version @consumer = OpenStruct.new(:version => @consumer_version, :name => pact.consumer.name) @provider = OpenStruct.new(:version => nil, :name => pact.provider.name) @created_at = pact.created_at @updated_at = pact.updated_at end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems