Class: CTEProxy
- Inherits:
-
Object
- Object
- CTEProxy
- Includes:
- ActiveRecord::Querying, ActiveRecord::Reflection::ClassMethods, ActiveRecord::Sanitization::ClassMethods
- Defined in:
- lib/postgres_ext/active_record/cte_proxy.rb
Instance Attribute Summary collapse
-
#arel_table ⇒ Object
readonly
Returns the value of attribute arel_table.
-
#connection ⇒ Object
readonly
Returns the value of attribute connection.
-
#current_scope ⇒ Object
Returns the value of attribute current_scope.
-
#reflections ⇒ Object
writeonly
Sets the attribute reflections.
Instance Method Summary collapse
-
#initialize(name, model) ⇒ CTEProxy
constructor
A new instance of CTEProxy.
- #name ⇒ Object
- #table_name ⇒ Object
Methods included from ActiveRecord::Querying
Constructor Details
Instance Attribute Details
#arel_table ⇒ Object (readonly)
Returns the value of attribute arel_table.
7 8 9 |
# File 'lib/postgres_ext/active_record/cte_proxy.rb', line 7 def arel_table @arel_table end |
#connection ⇒ Object (readonly)
Returns the value of attribute connection.
7 8 9 |
# File 'lib/postgres_ext/active_record/cte_proxy.rb', line 7 def connection @connection end |
#current_scope ⇒ Object
Returns the value of attribute current_scope.
6 7 8 |
# File 'lib/postgres_ext/active_record/cte_proxy.rb', line 6 def current_scope @current_scope end |
#reflections=(value) ⇒ Object
Sets the attribute reflections
6 7 8 |
# File 'lib/postgres_ext/active_record/cte_proxy.rb', line 6 def reflections=(value) @reflections = value end |
Instance Method Details
#name ⇒ Object
17 18 19 |
# File 'lib/postgres_ext/active_record/cte_proxy.rb', line 17 def name @name end |
#table_name ⇒ Object
21 22 23 |
# File 'lib/postgres_ext/active_record/cte_proxy.rb', line 21 def table_name name end |