Sha256: 3a71b94e5d9013106f499d806f13c0462aa9ed57e585c0154c871c808cd683cc

Contents?: true

Size: 578 Bytes

Versions: 14

Compression:

Stored size: 578 Bytes

Contents

# -*- coding: utf-8 -*-

module DataMapper
  module Validations
    module Fixtures

      class PieceOfSoftware
        #
        # Behaviors
        #

        include DataMapper::Validations

        #
        # Attributes
        #

        attr_accessor :name, :operating_system

        #
        # Validations
        #

        #
        # API
        #

        def initialize(attributes = {})
          attributes.each do |key, value|
            self.send("#{key}=", value)
          end
        end
      end

    end # Fixtures
  end # Validations
end # DataMapper

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
ardm-validations-1.2.0 spec/unit/contextual_validators/spec_helper.rb
dm-validations-1.2.0 spec/unit/contextual_validators/spec_helper.rb
dm-validations-1.2.0.rc2 spec/unit/contextual_validators/spec_helper.rb
dm-validations-1.2.0.rc1 spec/unit/contextual_validators/spec_helper.rb
dm-validations-1.1.0 spec/unit/contextual_validators/spec_helper.rb
dm-validations-1.1.0.rc3 spec/unit/contextual_validators/spec_helper.rb
dm-validations-1.1.0.rc2 spec/unit/contextual_validators/spec_helper.rb
dm-validations-1.1.0.rc1 spec/unit/contextual_validators/spec_helper.rb
dm-validations-1.0.2 spec/unit/contextual_validators/spec_helper.rb
dm-validations-1.0.1 spec/unit/contextual_validators/spec_helper.rb
dm-validations-1.0.0 spec/unit/contextual_validators/spec_helper.rb
dm-validations-1.0.0.rc3 spec/unit/contextual_validators/spec_helper.rb
dm-validations-1.0.0.rc2 spec/unit/contextual_validators/spec_helper.rb
dm-validations-1.0.0.rc1 spec/unit/contextual_validators/spec_helper.rb