Module: ActiveMocker::TemplateMethods::ClassMethods

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

Instance Method Summary collapse

Instance Method Details

#associationsObject



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

def associations
  {}
end

#associations_by_classObject



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

def associations_by_class
  {}
end

#attribute_namesObject



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

def attribute_names
  []
end

#attributesObject



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

def attributes
  HashWithIndifferentAccess.new({})
end

#mocked_classObject



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

def mocked_class
  ""
end

#primary_keyObject



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

def primary_key
  ""
end

#typesObject



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

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