Sha256: 9dfeed4bea92ecd9da368e4b38f1515ce589269b001317fbff1ce7f2dde5abc2

Contents?: true

Size: 569 Bytes

Versions: 3

Compression:

Stored size: 569 Bytes

Contents

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

module DataMapper
  module Validate
    module Fixtures

      class PieceOfSoftware
        #
        # Behaviors
        #

        include DataMapper::Validate

        #
        # 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 # Validate
end # DataMapper

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
dm-validations-0.10.2 spec/unit/contextual_validators/spec_helper.rb
dm-validations-0.10.1 spec/unit/contextual_validators/spec_helper.rb
dm-validations-0.10.0 spec/unit/contextual_validators/spec_helper.rb