Sha256: ae7f57aeae268eb8c1d7ab576e5a65dccf890e8eca1a4341031dd3ad7ab2bb64

Contents?: true

Size: 581 Bytes

Versions: 12

Compression:

Stored size: 581 Bytes

Contents

module ActiveMocker
module Mock
  module TemplateMethods

    def self.included(base)
      base.extend(ClassMethods)
    end

    module ClassMethods

      def attributes
        HashWithIndifferentAccess.new({})
      end

      def types
        ActiveMocker::Mock::HashProcess.new({}, method(:build_type))
      end

      def associations
        {}
      end

      def associations_by_class
        {}
      end

      def mocked_class
        ''
      end

      def attribute_names
        []
      end

      def primary_key
        ''
      end

    end

  end
end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
active_mocker-2.0.0.beta1 lib/active_mocker/mock/template_methods.rb
active_mocker-1.8.4 lib/active_mocker/mock/template_methods.rb
active_mocker-1.8.3 lib/active_mocker/mock/template_methods.rb
active_mocker-1.8.2 lib/active_mocker/mock/template_methods.rb
active_mocker-1.8.1 lib/active_mocker/mock/template_methods.rb
active_mocker-1.8 lib/active_mocker/mock/template_methods.rb
active_mocker-1.7.3 lib/active_mocker/mock/template_methods.rb
active_mocker-1.7.2 lib/active_mocker/mock/template_methods.rb
active_mocker-1.7.1 lib/active_mocker/mock/template_methods.rb
active_mocker-1.7.1rc lib/active_mocker/mock/template_methods.rb
active_mocker-1.7 lib/active_mocker/mock/template_methods.rb
active_mocker-1.7rc2 lib/active_mocker/mock/template_methods.rb