Class: SQLiteSweep::Result
- Inherits:
-
Data
- Object
- Data
- SQLiteSweep::Result
- Defined in:
- lib/sqlitesweep/result.rb
Overview
Represents the result of querying a single database.
Instance Attribute Summary collapse
-
#rows ⇒ Object
readonly
Returns the value of attribute rows.
-
#source ⇒ Object
readonly
Returns the value of attribute source.
Instance Method Summary collapse
-
#initialize(rows:, source:) ⇒ Result
constructor
A new instance of Result.
Constructor Details
#initialize(rows:, source:) ⇒ Result
Returns a new instance of Result.
13 14 15 |
# File 'lib/sqlitesweep/result.rb', line 13 def initialize(rows:, source:) super(rows: rows, source: source.to_s) end |
Instance Attribute Details
#rows ⇒ Object (readonly)
Returns the value of attribute rows
12 13 14 15 16 |
# File 'lib/sqlitesweep/result.rb', line 12 Result = Data.define(:rows, :source) do def initialize(rows:, source:) super(rows: rows, source: source.to_s) end end |
#source ⇒ Object (readonly)
Returns the value of attribute source
12 13 14 15 16 |
# File 'lib/sqlitesweep/result.rb', line 12 Result = Data.define(:rows, :source) do def initialize(rows:, source:) super(rows: rows, source: source.to_s) end end |