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
17 18 19 |
# File 'lib/active_mocker/mock/template_methods.rb', line 17 def associations {} end |
#associations_by_class ⇒ Object
21 22 23 |
# File 'lib/active_mocker/mock/template_methods.rb', line 21 def associations_by_class {} end |
#attribute_names ⇒ Object
29 30 31 |
# File 'lib/active_mocker/mock/template_methods.rb', line 29 def attribute_names [] end |
#attributes ⇒ Object
9 10 11 |
# File 'lib/active_mocker/mock/template_methods.rb', line 9 def attributes HashWithIndifferentAccess.new({}) end |
#mocked_class ⇒ Object
25 26 27 |
# File 'lib/active_mocker/mock/template_methods.rb', line 25 def mocked_class "" end |
#primary_key ⇒ Object
33 34 35 |
# File 'lib/active_mocker/mock/template_methods.rb', line 33 def primary_key "" end |
#types ⇒ Object
13 14 15 |
# File 'lib/active_mocker/mock/template_methods.rb', line 13 def types HashProcess.new({}, method(:build_type)) end |