Class: ActiveRecord::ConnectionAdapters::NullDBAdapter::Statement
- Defined in:
- lib/active_record/connection_adapters/nulldb_adapter/statement.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#entry_point ⇒ Object
readonly
Returns the value of attribute entry_point.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(entry_point, content = "") ⇒ Statement
constructor
A new instance of Statement.
Constructor Details
#initialize(entry_point, content = "") ⇒ Statement
Returns a new instance of Statement.
6 7 8 |
# File 'lib/active_record/connection_adapters/nulldb_adapter/statement.rb', line 6 def initialize(entry_point, content = "") @entry_point, @content = entry_point, content end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
4 5 6 |
# File 'lib/active_record/connection_adapters/nulldb_adapter/statement.rb', line 4 def content @content end |
#entry_point ⇒ Object (readonly)
Returns the value of attribute entry_point.
4 5 6 |
# File 'lib/active_record/connection_adapters/nulldb_adapter/statement.rb', line 4 def entry_point @entry_point end |
Instance Method Details
#==(other) ⇒ Object
10 11 12 |
# File 'lib/active_record/connection_adapters/nulldb_adapter/statement.rb', line 10 def ==(other) self.entry_point == other.entry_point end |