Class: ActiveRecord::ConnectionAdapters::Sunstone::DatabaseStatements::SunstonePartialQueryCollector

Inherits:
Object
  • Object
show all
Defined in:
lib/active_record/connection_adapters/sunstone/database_statements.rb

Instance Method Summary collapse

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

#valueObject



86
87
88
# File 'lib/active_record/connection_adapters/sunstone/database_statements.rb', line 86

def value
  [@collector, @binds]
end