lib/postalmethods/send_letter.rb in postalmethods-1.1.0 vs lib/postalmethods/send_letter.rb in postalmethods-1.1.1
- old
+ new
@@ -3,12 +3,10 @@
module SendLetter
def send_letter(doc, description, work_mode = "")
raise PostalMethods::NoPreparationException unless self.prepared
## push a letter over the api
-
-
-
+
self.document = doc
rv = @rpc_driver.sendLetterV2(:Username => self.username, :Password => self.password, :FileExtension => self.document[:extension],
:FileBinaryData => self.document[:bytes], :MyDescription => description, :WorkMode => self.work_mode)
status_code = rv.sendLetterV2Result.to_i
\ No newline at end of file