Class: PGB::Identifier

Inherits:
Expression show all
Defined in:
lib/pgb/identifier.rb

Instance Method Summary collapse

Methods included from SQLDisplayable

#inspect, #to_s

Constructor Details

#initialize(value) ⇒ Identifier

Returns a new instance of Identifier.



5
6
7
# File 'lib/pgb/identifier.rb', line 5

def initialize(value)
  @value = "\"#{value.to_s.gsub('"', '""')}\""
end

Instance Method Details

#to_sqlObject



9
10
11
# File 'lib/pgb/identifier.rb', line 9

def to_sql
  value
end