Sha256: 5bb30d3d551315c95aa30123395c1b9789342c9aa36903c68e213e0e6463367f

Contents?: true

Size: 544 Bytes

Versions: 7

Compression:

Stored size: 544 Bytes

Contents

module ActiveMocker
  module TemplateMethods

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

    module ClassMethods

      def attributes
        HashWithIndifferentAccess.new({})
      end

      def types
        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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
active_mocker-2.1.3 lib/active_mocker/mock/template_methods.rb
active_mocker-2.1.2 lib/active_mocker/mock/template_methods.rb
active_mocker-2.1.1 lib/active_mocker/mock/template_methods.rb
active_mocker-2.1.0 lib/active_mocker/mock/template_methods.rb
active_mocker-2.0.0 lib/active_mocker/mock/template_methods.rb
active_mocker-2.0.0.rc1 lib/active_mocker/mock/template_methods.rb
active_mocker-2.0.0.pre1 lib/active_mocker/mock/template_methods.rb