Sha256: 808f454d4d686ed35792992ee8c1d0b3801109c2ad675251f2ed357e9efe4aa5
Contents?: true
Size: 365 Bytes
Versions: 4
Compression:
Stored size: 365 Bytes
Contents
require 'sequel' module PactBroker module Models class Pacticipant < Sequel::Model set_primary_key :id one_to_many :versions, :order => :order, :reciprocal => :pacticipant one_to_many :pacts def last_version versions.last end def to_s "Pacticipant: id=#{id}, name=#{name}" end end end end
Version data entries
4 entries across 4 versions & 1 rubygems