lib/docusigner/envelope.rb in docusigner-0.0.4 vs lib/docusigner/envelope.rb in docusigner-0.0.5
- old
+ new
@@ -14,16 +14,21 @@
TRANSFER_COMPLETED = "transfercompleted"
TEMPLATE = "template"
CORRECT = "correct"
end
+ self.primary_key = "envelopeId"
+
belongs_to :account
has_many :documents
has_many :recipients
- def id
- attributes["envelopeId"]
+ class << self
+ def recipient_url(id, prefix_options = {}, params = {})
+ resp = post("#{id}/views/recipient", prefix_options, params.to_json)
+ format.decode(resp.body)
+ end
end
def send!
update_attribute(:status, Docusigner::Envelope::Status::SENT)
end