Class: YeSQL::Params::Output
- Inherits:
-
Object
- Object
- YeSQL::Params::Output
- Extended by:
- Forwardable
- Defined in:
- lib/yesql/params/output.rb
Instance Method Summary collapse
- #columns? ⇒ Boolean
- #hash? ⇒ Boolean
-
#initialize(output) ⇒ Output
constructor
A new instance of Output.
- #rows? ⇒ Boolean
Constructor Details
#initialize(output) ⇒ Output
Returns a new instance of Output.
11 12 13 |
# File 'lib/yesql/params/output.rb', line 11 def initialize(output) @output = output.to_s end |
Instance Method Details
#columns? ⇒ Boolean
15 16 17 |
# File 'lib/yesql/params/output.rb', line 15 def columns? output == "columns" end |
#hash? ⇒ Boolean
23 24 25 |
# File 'lib/yesql/params/output.rb', line 23 def hash? output == "hash" end |
#rows? ⇒ Boolean
19 20 21 |
# File 'lib/yesql/params/output.rb', line 19 def rows? output == "rows" end |