Class: Signatory::Document
Instance Method Summary
collapse
Methods inherited from API::Base
all, connection, escape_url_attrs, formatted_collection_name, formatted_name, #has_many, #id, instantiate_collection, #instantiate_record, #persisted?, #to_xml
Instance Method Details
#expired? ⇒ Boolean
10
11
12
|
# File 'lib/signatory/document.rb', line 10
def expired?
Date.parse(expires_on) < Date.today
end
|
#extend_expiration ⇒ Object
6
7
8
|
# File 'lib/signatory/document.rb', line 6
def extend_expiration
connection.post("#{self.class.site}documents/#{id}/extend_expiration")
end
|