Class: DatabaseRecorder::Mysql2::RecordedResult

Inherits:
Object
  • Object
show all
Defined in:
lib/database_recorder/mysql2/recorded_result.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#countObject (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

#entriesObject (readonly)

def_delegators :to_a, :each



15
16
17
# File 'lib/database_recorder/mysql2/recorded_result.rb', line 15

def entries
  @entries
end

#fieldsObject (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