Sha256: 0a52ed1d39d39239a589c5851beb2872ade57db41afed05112350e8adac78a8a

Contents?: true

Size: 332 Bytes

Versions: 31

Compression:

Stored size: 332 Bytes

Contents

class Factory
  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
        @hash
      end
    end
  end
end

Version data entries

31 entries across 31 versions & 13 rubygems

Version Path
BrettRasmussen-factory_girl-1.2.2 lib/factory_girl/proxy/attributes_for.rb
BrettRasmussen-factory_girl-1.2.3 lib/factory_girl/proxy/attributes_for.rb
agibralter-factory_girl-1.2.1 lib/factory_girl/proxy/attributes_for.rb
lacomartincik-factory_girl-1.2.1.1 lib/factory_girl/proxy/attributes_for.rb
masa-iwasaki-factory_girl-1.2.1.1 lib/factory_girl/proxy/attributes_for.rb
qrush-factory_girl-1.2.1.1 lib/factory_girl/proxy/attributes_for.rb
thoughtbot-factory_girl-1.2.0 lib/factory_girl/proxy/attributes_for.rb
thoughtbot-factory_girl-1.2.1 lib/factory_girl/proxy/attributes_for.rb
thoughtbot-factory_girl-1.2.2 lib/factory_girl/proxy/attributes_for.rb
ttilley-factory_girl-1.2.2.1 lib/factory_girl/proxy/attributes_for.rb
ttilley-factory_girl-1.2.2.2 lib/factory_girl/proxy/attributes_for.rb
ttilley-factory_girl-1.2.2 lib/factory_girl/proxy/attributes_for.rb
factory_girl-1.3.3 lib/factory_girl/proxy/attributes_for.rb
vitalish-factory_girl-1.2.7 lib/factory_girl/proxy/attributes_for.rb
vitalish-factory_girl-1.2.6 lib/factory_girl/proxy/attributes_for.rb
factory_girl-1.3.2 lib/factory_girl/proxy/attributes_for.rb
factory_girl-1.3.1 lib/factory_girl/proxy/attributes_for.rb
lockbox_middleware-1.2.1 vendor/gems/factory_girl-1.2.3/lib/factory_girl/proxy/attributes_for.rb
factory_girl-1.3.0 lib/factory_girl/proxy/attributes_for.rb
malvestuto_factory_girl-1.2.5 lib/factory_girl/proxy/attributes_for.rb