class Dgrid::API::Keyword
Attributes
synonyms[RW]
triggers_alert[RW]
Public Class Methods
db_fields()
click to toggle source
# File lib/dgrid/api/keyword.rb, line 18 def self.db_fields %w(id name synonyms triggers_alert) end
new(options)
click to toggle source
Calls superclass method
# File lib/dgrid/api/keyword.rb, line 11 def initialize(options) parent_opts, my_opts = split_hash(options,[:id, :name]) super(parent_opts) set_members_from_hash(my_opts) end
pluralized()
click to toggle source
# File lib/dgrid/api/keyword.rb, line 31 def self.pluralized 'keywords' end
Public Instance Methods
to_hash()
click to toggle source
Calls superclass method
# File lib/dgrid/api/keyword.rb, line 22 def to_hash h = super h.delete(:description) h.merge!( { :synonyms => synonyms, :triggers_alert => triggers_alert }) h end