Sha256: cada35a9221b0f9341aaeb33b4b0a1c96b4b4f3414b25d5fbd3a8f45aefd0639

Contents?: true

Size: 254 Bytes

Versions: 3

Compression:

Stored size: 254 Bytes

Contents

require 'sequel'

module PactBroker

  module Models

    class Version < Sequel::Model

      one_to_many :pacts
      one_to_one :pacticipant

      def to_s
        "Version: number=#{number}, pacticipant=#{pacticipant_id}"
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pact_broker-0.0.4 lib/pact_broker/models/version.rb
pact_broker-0.0.3 lib/pact_broker/models/version.rb
pact_broker-0.0.2 lib/pact_broker/models/version.rb