lib/api/group.rb in the-city-admin-0.3.1 vs lib/api/group.rb in the-city-admin-0.4.0
- old
+ new
@@ -53,10 +53,11 @@
if reader.is_a?(GroupReader)
initialize_from_json_object(reader.load_feed)
elsif reader.is_a?(Hash)
initialize_from_json_object(reader)
end
+ @writer_object = GroupWriter
@address_list = nil
@checkin_list = nil
@event_attendance_list = nil
@export_list = nil
@@ -160,19 +161,9 @@
return nil unless self.id
@tag_list = GroupTagList.new({:group_id => self.id})
return @tag_list
end
-
-
-
- # Save this object.
- #
- # @return True on success, otherwise false.
- def save
- writer = GroupWriter.new(self.to_attributes)
- writer.save_feed
- end
end
end