Class: Object

Inherits:
BasicObject
Defined in:
lib/cartodb-rb-client/cartodb/libs/object.rb

Instance Method Summary collapse

Instance Method Details

#needsQuotes?Boolean

Returns:

  • (Boolean)


3
4
5
6
7
8
9
10
11
12
13
14
# File 'lib/cartodb-rb-client/cartodb/libs/object.rb', line 3

def needsQuotes?
  return false unless self

  case self
  when ::String
    true
  when ::Date, ::DateTime, ::Time
    true
  else
    false
  end
end