Class: Dossier::Adapter::ActiveRecord::Result

Inherits:
Object
  • Object
show all
Defined in:
lib/dossier/adapter/active_record/result.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(activerecord_result) ⇒ Result

Returns a new instance of Result.



8
9
10
# File 'lib/dossier/adapter/active_record/result.rb', line 8

def initialize(activerecord_result)
  self.result = activerecord_result
end

Instance Attribute Details

#resultObject

Returns the value of attribute result.



6
7
8
# File 'lib/dossier/adapter/active_record/result.rb', line 6

def result
  @result
end

Instance Method Details

#headersObject



12
13
14
# File 'lib/dossier/adapter/active_record/result.rb', line 12

def headers
  result.columns
end

#rowsObject



16
17
18
# File 'lib/dossier/adapter/active_record/result.rb', line 16

def rows
  result.rows
end