Sha256: 951a08100d06dbe934719329e1fcd7b517b4b84403399af36ff59be7ab41c971

Contents?: true

Size: 482 Bytes

Versions: 73

Compression:

Stored size: 482 Bytes

Contents

require 'reform'
require 'reform/form'

module PactBroker
  module Api
    module Contracts
      class PacticipantNameContract < Reform::Form
        property :name
        property :name_in_pact
        property :pacticipant
        property :message_args

        include PactBroker::Messages

        def blank? string
          string && string.strip.empty?
        end

        def empty? string
          string.nil? || blank?(string)
        end
      end
    end
  end
end

Version data entries

73 entries across 73 versions & 1 rubygems

Version Path
pact_broker-2.30.0 lib/pact_broker/api/contracts/pacticipant_name_contract.rb
pact_broker-2.29.0 lib/pact_broker/api/contracts/pacticipant_name_contract.rb
pact_broker-2.27.6 lib/pact_broker/api/contracts/pacticipant_name_contract.rb
pact_broker-2.27.5 lib/pact_broker/api/contracts/pacticipant_name_contract.rb
pact_broker-2.27.4 lib/pact_broker/api/contracts/pacticipant_name_contract.rb
pact_broker-2.27.3 lib/pact_broker/api/contracts/pacticipant_name_contract.rb
pact_broker-2.27.2 lib/pact_broker/api/contracts/pacticipant_name_contract.rb
pact_broker-2.27.0 lib/pact_broker/api/contracts/pacticipant_name_contract.rb
pact_broker-2.26.1 lib/pact_broker/api/contracts/pacticipant_name_contract.rb
pact_broker-2.26.0 lib/pact_broker/api/contracts/pacticipant_name_contract.rb
pact_broker-2.25.0 lib/pact_broker/api/contracts/pacticipant_name_contract.rb
pact_broker-2.24.0 lib/pact_broker/api/contracts/pacticipant_name_contract.rb
pact_broker-2.23.4 lib/pact_broker/api/contracts/pacticipant_name_contract.rb
pact_broker-2.23.3 lib/pact_broker/api/contracts/pacticipant_name_contract.rb
pact_broker-2.23.2 lib/pact_broker/api/contracts/pacticipant_name_contract.rb
pact_broker-2.23.1 lib/pact_broker/api/contracts/pacticipant_name_contract.rb
pact_broker-2.23.0 lib/pact_broker/api/contracts/pacticipant_name_contract.rb
pact_broker-2.22.0 lib/pact_broker/api/contracts/pacticipant_name_contract.rb
pact_broker-2.21.0 lib/pact_broker/api/contracts/pacticipant_name_contract.rb
pact_broker-2.20.0 lib/pact_broker/api/contracts/pacticipant_name_contract.rb