Module: ActiveMocker::TemplateMethods::ClassMethods

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

Instance Method Summary collapse

Instance Method Details

#associationsObject



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

def associations
  {}
end

#associations_by_classObject



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

def associations_by_class
  {}
end

#attribute_namesObject



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

def attribute_names
  []
end

#attributesObject



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

def attributes
  HashWithIndifferentAccess.new({})
end

#mocked_classObject



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

def mocked_class
  ''
end

#primary_keyObject



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

def primary_key
  ''
end

#typesObject



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

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