Module: WeaviateRecord::MethodMissing
- Included in:
- Base
- Defined in:
- lib/weaviate_record/method_missing.rb
Overview
:nodoc:
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args, &block) ⇒ Object (private)
12 13 14 15 16 17 18 |
# File 'lib/weaviate_record/method_missing.rb', line 12 def method_missing(method, *args, &block) if list_of_all_attributes.include? method.to_s raise WeaviateRecord::Errors::MissingAttributeError, "missing attribute: #{method}" end super end |