Class: ActiveRecordQuery::Joinable::JoinedResource
- Inherits:
-
Object
- Object
- ActiveRecordQuery::Joinable::JoinedResource
- Defined in:
- lib/active_record_query/concerns/joinable.rb
Overview
The object holds the columns called from a joined resource.
Instance Method Summary collapse
-
#initialize(resource) ⇒ JoinedResource
constructor
A new instance of JoinedResource.
- #method_missing(method_name, *_args, &block) ⇒ Object
Constructor Details
#initialize(resource) ⇒ JoinedResource
Returns a new instance of JoinedResource.
8 9 10 |
# File 'lib/active_record_query/concerns/joinable.rb', line 8 def initialize(resource) @resource = resource end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method