Class: Watchtower::Data

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/watchtower/data.rb

Direct Known Subclasses

CustomData, Email, Phone

Instance Method Summary collapse

Instance Method Details

#nameObject



7
8
9
# File 'app/models/watchtower/data.rb', line 7

def name
  self[:name] || "other"
end

#to_sObject



11
12
13
# File 'app/models/watchtower/data.rb', line 11

def to_s
  content
end