Class: Dossier::Adapter::ActiveRecord::Result
- Inherits:
-
Object
- Object
- Dossier::Adapter::ActiveRecord::Result
- Defined in:
- lib/dossier/adapter/active_record/result.rb
Instance Attribute Summary collapse
-
#result ⇒ Object
Returns the value of attribute result.
Instance Method Summary collapse
- #headers ⇒ Object
-
#initialize(activerecord_result) ⇒ Result
constructor
A new instance of Result.
- #rows ⇒ Object
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
#result ⇒ Object
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
#headers ⇒ Object
12 13 14 |
# File 'lib/dossier/adapter/active_record/result.rb', line 12 def headers result.columns end |
#rows ⇒ Object
16 17 18 |
# File 'lib/dossier/adapter/active_record/result.rb', line 16 def rows result.rows end |