Module: ActiveMocker::Mock::TemplateMethods::ClassMethods

Defined in:
lib/active_mocker/mock/template_methods.rb

Instance Method Summary collapse

Instance Method Details

#associationsObject



19
20
21
# File 'lib/active_mocker/mock/template_methods.rb', line 19

def associations
  {}
end

#associations_by_classObject



23
24
25
# File 'lib/active_mocker/mock/template_methods.rb', line 23

def associations_by_class
  {}
end

#attribute_namesObject



31
32
33
# File 'lib/active_mocker/mock/template_methods.rb', line 31

def attribute_names
  []
end

#attributesObject



11
12
13
# File 'lib/active_mocker/mock/template_methods.rb', line 11

def attributes
  HashWithIndifferentAccess.new({})
end

#mocked_classObject



27
28
29
# File 'lib/active_mocker/mock/template_methods.rb', line 27

def mocked_class
  ''
end

#primary_keyObject



35
36
37
# File 'lib/active_mocker/mock/template_methods.rb', line 35

def primary_key
  ''
end

#typesObject



15
16
17
# File 'lib/active_mocker/mock/template_methods.rb', line 15

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