Class: Rgviz::DateTimeColumn

Inherits:
ValueColumn show all
Defined in:
lib/rgviz/nodes.rb

Instance Attribute Summary

Attributes inherited from ValueColumn

#value

Instance Method Summary collapse

Methods inherited from ValueColumn

#eql?, #hash, #initialize

Constructor Details

This class inherits a constructor from Rgviz::ValueColumn

Instance Method Details

#accept(visitor) ⇒ Object



388
389
390
391
# File 'lib/rgviz/nodes.rb', line 388

def accept(visitor)
  visitor.visit_date_time_column(self)
  visitor.end_visit_date_time_column self
end

#to_sObject



393
394
395
# File 'lib/rgviz/nodes.rb', line 393

def to_s
  "datetime '" + value.strftime("%Y-%m-%d %H:%M:%S") + "'"
end