Module: ActiveMocker::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
18 19 20 |
# File 'lib/active_mocker/mock/template_methods.rb', line 18 def associations {} end |
#associations_by_class ⇒ Object
22 23 24 |
# File 'lib/active_mocker/mock/template_methods.rb', line 22 def associations_by_class {} end |
#attribute_names ⇒ Object
30 31 32 |
# File 'lib/active_mocker/mock/template_methods.rb', line 30 def attribute_names [] end |
#attributes ⇒ Object
10 11 12 |
# File 'lib/active_mocker/mock/template_methods.rb', line 10 def attributes HashWithIndifferentAccess.new({}) end |
#mocked_class ⇒ Object
26 27 28 |
# File 'lib/active_mocker/mock/template_methods.rb', line 26 def mocked_class '' end |
#primary_key ⇒ Object
34 35 36 |
# File 'lib/active_mocker/mock/template_methods.rb', line 34 def primary_key '' end |
#types ⇒ Object
14 15 16 |
# File 'lib/active_mocker/mock/template_methods.rb', line 14 def types HashProcess.new({}, method(:build_type)) end |