class Blog < Post xml_accessor :title xml_accessor :body key :title, String key :body, String validates_presence_of :title, :body def to_activity <<-XML http://activitystrea.ms/schema/1.0/post #{self.title} #{self.body} #{person.url}blogs/#{self.id} #{self.created_at.xmlschema} #{self.updated_at.xmlschema} XML end end