Class: ActiveRecord::ConnectionAdapters::NullDBAdapter::Statement

Inherits:
Object
  • Object
show all
Defined in:
lib/active_record/connection_adapters/nulldb_adapter/statement.rb

Direct Known Subclasses

Checkpoint

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#contentObject (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_pointObject (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