lib/emailbutler/dsl.rb in emailbutler-0.2.3 vs lib/emailbutler/dsl.rb in emailbutler-0.3.0
- old
+ new
@@ -33,7 +33,27 @@
# Public: Updates the message.
def update_message(message, args={})
adapter.update_message(message, args)
end
+
+ # Public: Groups messages by status and count them.
+ def count_messages_by_status
+ adapter.count_messages_by_status
+ end
+
+ # Public: Finds messages by args.
+ def find_messages_by(args={})
+ adapter.find_messages_by(args)
+ end
+
+ # Public: Resends the message.
+ def resend_message(message)
+ adapter.resend_message(message)
+ end
+
+ # Public: Destroys the message.
+ def destroy_message(message)
+ adapter.destroy_message(message)
+ end
end
end