Sha256: aca74580976a488435f624e13c3c60186897bc2ebea50f2a8ed0e3837ccf4648

Contents?: true

Size: 348 Bytes

Versions: 13

Compression:

Stored size: 348 Bytes

Contents

module FactoryGirl
  class Proxy #:nodoc:
    class AttributesFor < Proxy #:nodoc:
      def initialize(klass)
        @hash = {}
      end

      def get(attribute)
        @hash[attribute]
      end

      def set(attribute, value)
        @hash[attribute] = value
      end

      def result(to_create)
        @hash
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
factory_girl-2.0.4 lib/factory_girl/proxy/attributes_for.rb
factory_girl-2.0.3 lib/factory_girl/proxy/attributes_for.rb
factory_girl-2.0.2 lib/factory_girl/proxy/attributes_for.rb
factory_girl-2.0.1 lib/factory_girl/proxy/attributes_for.rb
factory_girl-2.0.0.rc4 lib/factory_girl/proxy/attributes_for.rb
factory_girl-2.0.0.rc3 lib/factory_girl/proxy/attributes_for.rb
factory_girl-2.0.0.rc2 lib/factory_girl/proxy/attributes_for.rb
factory_girl-2.0.0.rc1 lib/factory_girl/proxy/attributes_for.rb
factory_girl-2.0.0.beta5 lib/factory_girl/proxy/attributes_for.rb
factory_girl-2.0.0.beta4 lib/factory_girl/proxy/attributes_for.rb
factory_girl-2.0.0.beta3 lib/factory_girl/proxy/attributes_for.rb
factory_girl_kibiz0r-2.0.0.beta2 lib/factory_girl/proxy/attributes_for.rb
factory_girl-2.0.0.beta2 lib/factory_girl/proxy/attributes_for.rb