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.
83 84 85 86 |
# File 'lib/active_record/connection_adapters/sunstone/database_statements.rb', line 83 def initialize(collector) @collector = collector @binds = [] end |
Instance Method Details
#add_bind(obj) ⇒ Object
88 89 90 |
# File 'lib/active_record/connection_adapters/sunstone/database_statements.rb', line 88 def add_bind(obj) @binds << obj end |
#value ⇒ Object
92 93 94 |
# File 'lib/active_record/connection_adapters/sunstone/database_statements.rb', line 92 def value [@collector, @binds] end |