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.
77 78 79 80 |
# File 'lib/active_record/connection_adapters/sunstone/database_statements.rb', line 77 def initialize(collector) @collector = collector @binds = [] end |
Instance Method Details
#add_bind(obj) ⇒ Object
82 83 84 |
# File 'lib/active_record/connection_adapters/sunstone/database_statements.rb', line 82 def add_bind(obj) @binds << obj end |
#value ⇒ Object
86 87 88 |
# File 'lib/active_record/connection_adapters/sunstone/database_statements.rb', line 86 def value [@collector, @binds] end |