Class: DatabaseRecorder::Mysql2::RecordedResult
- Inherits:
-
Object
- Object
- DatabaseRecorder::Mysql2::RecordedResult
- Defined in:
- lib/database_recorder/mysql2/recorded_result.rb
Instance Attribute Summary collapse
-
#count ⇒ Object
(also: #size)
readonly
def_delegators :to_a, :each.
-
#entries ⇒ Object
readonly
def_delegators :to_a, :each.
-
#fields ⇒ Object
readonly
def_delegators :to_a, :each.
Instance Method Summary collapse
Instance Attribute Details
#count ⇒ Object (readonly) Also known as: size
def_delegators :to_a, :each
15 16 17 |
# File 'lib/database_recorder/mysql2/recorded_result.rb', line 15 def count @count end |
#entries ⇒ Object (readonly)
def_delegators :to_a, :each
15 16 17 |
# File 'lib/database_recorder/mysql2/recorded_result.rb', line 15 def entries @entries end |
#fields ⇒ Object (readonly)
def_delegators :to_a, :each
15 16 17 |
# File 'lib/database_recorder/mysql2/recorded_result.rb', line 15 def fields @fields end |
Instance Method Details
#prepare(data) ⇒ Object
19 20 21 22 23 24 |
# File 'lib/database_recorder/mysql2/recorded_result.rb', line 19 def prepare(data) @count = data[:count] @fields = data[:fields] @entries = data[:values] # @values = data[:values] end |