Class: Charted::Event

Inherits:
Sequel::Model
  • Object
show all
Includes:
HasVisitor
Defined in:
lib/charted/model.rb

Instance Method Summary collapse

Methods included from HasVisitor

#site

Constructor Details

#initialize(*args) ⇒ Event

Returns a new instance of Event.



134
135
136
137
# File 'lib/charted/model.rb', line 134

def initialize(*args)
  super
  self.created_at ||= DateTime.now
end