Sha256: 0c7d765a92eeb9caf85e8c676d6bac01a25466ea00b0b24e75be8f3ac3aa59fa

Contents?: true

Size: 369 Bytes

Versions: 1

Compression:

Stored size: 369 Bytes

Contents

require 'sequel'

module PactBroker

  module Models
    class Pact < Sequel::Model

      #Need to work out how to do this properly!
      def consumer_version_number
        values[:consumer_version_number]
      end

      def to_s
        "Pact: provider_id=#{provider_id}"
      end

      def to_json options = {}
        json_content
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pact_broker-0.0.1 lib/pact_broker/models/pact.rb