Class: ActiveRecord::ConnectionAdapters::Sunstone::DatabaseStatements::SunstonePartialQueryCollector
- Inherits:
-
Object
- Object
- ActiveRecord::ConnectionAdapters::Sunstone::DatabaseStatements::SunstonePartialQueryCollector
- Defined in:
- lib/active_record/connection_adapters/sunstone/database_statements.rb
Instance Method Summary collapse
- #add_bind(obj) ⇒ Object
-
#initialize(collector) ⇒ SunstonePartialQueryCollector
constructor
A new instance of SunstonePartialQueryCollector.
- #value ⇒ Object
Constructor Details
#initialize(collector) ⇒ SunstonePartialQueryCollector
Returns a new instance of SunstonePartialQueryCollector.
78 79 80 81 |
# File 'lib/active_record/connection_adapters/sunstone/database_statements.rb', line 78 def initialize(collector) @collector = collector @binds = [] end |
Instance Method Details
#add_bind(obj) ⇒ Object
83 84 85 |
# File 'lib/active_record/connection_adapters/sunstone/database_statements.rb', line 83 def add_bind(obj) @binds << obj end |
#value ⇒ Object
87 88 89 |
# File 'lib/active_record/connection_adapters/sunstone/database_statements.rb', line 87 def value [@collector, @binds] end |