Module: ActiveMocker::Mock::TemplateMethods::ClassMethods
- Defined in:
- lib/active_mocker/mock/template_methods.rb
Instance Method Summary collapse
- #associations ⇒ Object
- #associations_by_class ⇒ Object
- #attribute_names ⇒ Object
- #attributes ⇒ Object
- #mocked_class ⇒ Object
- #primary_key ⇒ Object
- #types ⇒ Object
Instance Method Details
#associations ⇒ Object
19 20 21 |
# File 'lib/active_mocker/mock/template_methods.rb', line 19 def associations {} end |
#associations_by_class ⇒ Object
23 24 25 |
# File 'lib/active_mocker/mock/template_methods.rb', line 23 def associations_by_class {} end |
#attribute_names ⇒ Object
31 32 33 |
# File 'lib/active_mocker/mock/template_methods.rb', line 31 def attribute_names [] end |
#attributes ⇒ Object
11 12 13 |
# File 'lib/active_mocker/mock/template_methods.rb', line 11 def attributes HashWithIndifferentAccess.new({}) end |
#mocked_class ⇒ Object
27 28 29 |
# File 'lib/active_mocker/mock/template_methods.rb', line 27 def mocked_class '' end |
#primary_key ⇒ Object
35 36 37 |
# File 'lib/active_mocker/mock/template_methods.rb', line 35 def primary_key '' end |
#types ⇒ Object
15 16 17 |
# File 'lib/active_mocker/mock/template_methods.rb', line 15 def types ActiveMocker::Mock::HashProcess.new({}, method(:build_type)) end |