Class: YeSQL::Params::Output

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/yesql/params/output.rb

Instance Method Summary collapse

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

Returns:

  • (Boolean)


15
16
17
# File 'lib/yesql/params/output.rb', line 15

def columns?
  output == "columns"
end

#hash?Boolean

Returns:

  • (Boolean)


23
24
25
# File 'lib/yesql/params/output.rb', line 23

def hash?
  output == "hash"
end

#rows?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/yesql/params/output.rb', line 19

def rows?
  output == "rows"
end