lib/docusigner/envelope.rb in docusigner-0.0.5 vs lib/docusigner/envelope.rb in docusigner-0.0.6
- old
+ new
@@ -26,9 +26,15 @@
class << self
def recipient_url(id, prefix_options = {}, params = {})
resp = post("#{id}/views/recipient", prefix_options, params.to_json)
format.decode(resp.body)
end
+
+ # fetch documents - don't use helper b/c we don't want to try to parse as json
+ def documents_combined(id, prefix_options = {})
+ connection.get(custom_method_collection_url("#{id}/documents/combined", prefix_options), headers).body
+ end
+
end
def send!
update_attribute(:status, Docusigner::Envelope::Status::SENT)
end